Centralize "Resized()"

This commit is contained in:
Henrik Rydgard 2016-12-21 18:13:58 +01:00
parent 7e46a153c0
commit e15cba0e1b
9 changed files with 15 additions and 28 deletions

View file

@ -26,7 +26,8 @@
GPUCommon::GPUCommon() :
dumpNextFrame_(false),
dumpThisFrame_(false),
framebufferManager_(nullptr)
framebufferManager_(nullptr),
resized_(false)
{
// This assert failed on GCC x86 32-bit (but not MSVC 32-bit!) before adding the
// "padding" field at the end. This is important for save state compatibility.
@ -98,6 +99,11 @@ bool GPUCommon::BusyDrawing() {
return false;
}
void GPUCommon::Resized() {
resized_ = true;
framebufferManager_->Resized();
}
u32 GPUCommon::DrawSync(int mode) {
if (ThreadEnabled()) {
// Sync first, because the CPU is usually faster than the emulated GPU.