From e09df557032d5f67ee91566e3736bc973f1b2ace Mon Sep 17 00:00:00 2001 From: raven02 Date: Sun, 7 Jul 2013 21:20:30 +0800 Subject: [PATCH] Scale pic0Texture bit smaller as it overlaps the button --- UI/MenuScreens.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index da93a3a783..cea184eec6 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -423,8 +423,8 @@ void PauseScreen::render() { if (ginfo && ginfo->pic0Texture) { ginfo->pic0Texture->Bind(0); // Pic0 is drawn in the bottom right corner, overlaying pic1. - float sizeX = dp_xres / 480 * ginfo->pic0Texture->Width(); - float sizeY = dp_yres / 272 * ginfo->pic0Texture->Height(); + float sizeX = dp_xres / 480 * ginfo->pic0Texture->Width() * 0.5; + float sizeY = dp_yres / 272 * ginfo->pic0Texture->Height() * 0.5; uint32_t color = whiteAlpha(ease((time_now_d() - ginfo->timePic1WasLoaded) * 2)) & 0xFFc0c0c0; ui_draw2d.DrawTexRect(dp_xres - sizeX, dp_yres - sizeY, dp_xres, dp_yres, 0,0,1,1,color); ui_draw2d.Flush();