diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index cb08db6d..7aa0d470 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -110,7 +110,7 @@ void Graphics::init(void) m = 0; linedelay = 0; menubuffer = NULL; - tempBuffer = NULL; + menuoffbuffer = NULL; warpbuffer = NULL; warpbuffer_lerp = NULL; footerbuffer = NULL; @@ -230,8 +230,8 @@ void Graphics::create_buffers(const SDL_PixelFormat* fmt) titlebg.buffer_lerp = CREATE_SURFACE(SCREEN_WIDTH_PIXELS + 16, SCREEN_HEIGHT_PIXELS + 16); SDL_SetSurfaceBlendMode(titlebg.buffer_lerp, SDL_BLENDMODE_NONE); - tempBuffer = CREATE_SURFACE(SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS); - SDL_SetSurfaceBlendMode(tempBuffer, SDL_BLENDMODE_NONE); + menuoffbuffer = CREATE_SURFACE(SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS); + SDL_SetSurfaceBlendMode(menuoffbuffer, SDL_BLENDMODE_NONE); #undef CREATE_SURFACE } @@ -252,7 +252,7 @@ void Graphics::destroy_buffers(void) FREE_SURFACE(towerbg.buffer_lerp); FREE_SURFACE(titlebg.buffer); FREE_SURFACE(titlebg.buffer_lerp); - FREE_SURFACE(tempBuffer); + FREE_SURFACE(menuoffbuffer); #undef FREE_SURFACE } @@ -3255,7 +3255,7 @@ void Graphics::menuoffrender(void) SDL_Rect offsetRect = {0, usethisoffset, backBuffer->w, backBuffer->h}; BlitSurfaceStandard(backBuffer, NULL, menubuffer, NULL); - BlitSurfaceStandard(tempBuffer, NULL, backBuffer, NULL); + BlitSurfaceStandard(menuoffbuffer, NULL, backBuffer, NULL); BlitSurfaceStandard(menubuffer, NULL, backBuffer, &offsetRect); gameScreen.UpdateScreen(backBuffer, NULL); diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index 24a5f4ac..17969d1a 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -280,7 +280,7 @@ public: SDL_Surface* backBuffer; SDL_Surface* menubuffer; SDL_Surface* foregroundBuffer; - SDL_Surface* tempBuffer; + SDL_Surface* menuoffbuffer; SDL_Surface* warpbuffer; SDL_Surface* warpbuffer_lerp; diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 9323d6ee..b19fb3a5 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -3074,7 +3074,7 @@ static void mapmenuactionpress(const bool version2_2) //Kill contents of offset render buffer, since we do that for some reason. //This fixes an apparent frame flicker. - ClearSurface(graphics.tempBuffer); + ClearSurface(graphics.menuoffbuffer); graphics.fademode = FADE_START_FADEOUT; music.fadeout(); map.nexttowercolour(); diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index e359c044..2608e66f 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1961,7 +1961,7 @@ void gamerender(void) graphics.cutscenebars(); graphics.drawfade(); - BlitSurfaceStandard(graphics.backBuffer, NULL, graphics.tempBuffer, NULL); + BlitSurfaceStandard(graphics.backBuffer, NULL, graphics.menuoffbuffer, NULL); graphics.drawgui(); if (graphics.flipmode)