From 558e40551126b8fb4d6fb4f555c979b4b744c098 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 29 Jun 2016 01:03:11 +0000 Subject: [PATCH] GPU: - Ensure that window states are updated when the framebuffer size changes. (Regression from r5473.) --- desmume/src/GPU.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 8d12ec624..8d744d158 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -4896,6 +4896,9 @@ void GPUEngineBase::SetCustomFramebufferSize(size_t w, size_t h) this->_bgLayerIndexCustom = newBGLayerIndexCustom; this->_bgLayerColorCustom = newBGLayerColorCustom; + this->_needUpdateWINH[0] = true; + this->_needUpdateWINH[1] = true; + free_aligned(oldWorkingScanline); free_aligned(oldBGPixels); free_aligned(oldBGLayerIndexCustom);