VideoCommon: Store last window request width/height

This avoids the need to send a window resize event every frame.
This commit is contained in:
Stenzek
2017-03-04 16:42:31 +10:00
parent 00a0a91513
commit 811eafda57
2 changed files with 13 additions and 5 deletions

View File

@ -192,6 +192,10 @@ private:
unsigned int m_efb_scale_denominatorX = 1;
unsigned int m_efb_scale_denominatorY = 1;
// These will be set on the first call to SetWindowSize.
int m_last_window_request_width = 0;
int m_last_window_request_height = 0;
// frame dumping
std::thread m_frame_dump_thread;
Common::Event m_frame_dump_start;