From da787a85865fc9272c1162b53a1c1456ab815213 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 10 Oct 2017 18:28:35 +0200 Subject: [PATCH] Load the CHGROUND channel as an emty texture It fixes the mapping for the floors when the screen is not 4:3. --- src/blupi.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/blupi.cxx b/src/blupi.cxx index 406aacb..fddb164 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -736,11 +736,9 @@ DoInit (int argc, char * argv[], bool & exit) return EXIT_FAILURE; OutputDebug ("Image: init\n"); - totalDim.x = LXLOGIC; - totalDim.y = LYLOGIC; - iconDim.x = 0; - iconDim.y = 0; - if (!g_pPixmap->Cache (CHGROUND, "image/init.png", totalDim, iconDim)) + totalDim.x = LXIMAGE; + totalDim.y = LYIMAGE; + if (!g_pPixmap->Cache (CHGROUND, totalDim)) return EXIT_FAILURE; rcRect.left = 0;