From a5b25313f88f42c1faac2bd031c6cbc8cb53188e Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 13 Sep 2021 19:30:47 -0700 Subject: [PATCH] GPU: The internal buffer for custom-sized layer IDs is now cleared in its entirety, rather than just most of it. --- desmume/src/GPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 desmume/src/GPU.cpp diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp old mode 100755 new mode 100644 index 3e5f59fcd..1ea224158 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -812,7 +812,7 @@ void GPUEngineBase::SetupBuffers() { if (this->_renderLineLayerIDCustom != NULL) { - memset(this->_renderLineLayerIDCustom, GPULayerID_Backdrop, dispInfo.customWidth * dispInfo.customHeight * sizeof(u8)); + memset(this->_renderLineLayerIDCustom, GPULayerID_Backdrop, dispInfo.customWidth * (dispInfo.customHeight + (_gpuLargestDstLineCount * 4)) * sizeof(u8)); } } }