mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-24 19:27:27 +00:00
Renderer: Pull dimensions from GLInterface/Swapchain
This commit is contained in:
parent
a3961750a7
commit
1d827a5223
7 changed files with 7 additions and 26 deletions
|
@ -417,11 +417,9 @@ void Renderer::ChangeSurface(void* new_surface_handle)
|
|||
m_surface_changed.Set();
|
||||
}
|
||||
|
||||
void Renderer::ResizeSurface(int new_width, int new_height)
|
||||
void Renderer::ResizeSurface()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_swap_mutex);
|
||||
m_new_backbuffer_width = new_width;
|
||||
m_new_backbuffer_height = new_height;
|
||||
m_surface_resized.Set();
|
||||
}
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ public:
|
|||
// Final surface changing
|
||||
// This is called when the surface is resized (WX) or the window changes (Android).
|
||||
void ChangeSurface(void* new_surface_handle);
|
||||
void ResizeSurface(int new_width, int new_height);
|
||||
void ResizeSurface();
|
||||
bool UseVertexDepthRange() const;
|
||||
|
||||
virtual std::unique_ptr<VideoCommon::AsyncShaderCompiler> CreateAsyncShaderCompiler();
|
||||
|
@ -229,8 +229,6 @@ protected:
|
|||
// Backbuffer (window) size and render area
|
||||
int m_backbuffer_width = 0;
|
||||
int m_backbuffer_height = 0;
|
||||
int m_new_backbuffer_width = 0;
|
||||
int m_new_backbuffer_height = 0;
|
||||
TargetRectangle m_target_rectangle = {};
|
||||
|
||||
FPSCounter m_fps_counter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue