Centralize "Resized()"
This commit is contained in:
parent
7e46a153c0
commit
e15cba0e1b
9 changed files with 15 additions and 28 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue