1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Cosmetics

This commit is contained in:
Mathieu Schroeter 2018-06-26 19:11:49 +02:00
parent 438c01181e
commit bf31378ffc

View File

@ -322,16 +322,9 @@ CPixmap::Cache (
Sint32 access, ow, w, oh, h; Sint32 access, ow, w, oh, h;
SDL_QueryTexture (texture, &format, &access, &ow, &oh); SDL_QueryTexture (texture, &format, &access, &ow, &oh);
if (mode == EXPAND || channel == CHBACK) auto m = mode == EXPAND || channel == CHBACK;
{ w = m ? LXIMAGE : ow;
w = LXIMAGE; h = m ? LYIMAGE : oh;
h = LYIMAGE;
}
else
{
w = ow;
h = oh;
}
if (m_SDLTextureInfo.find (channel) == m_SDLTextureInfo.end ()) if (m_SDLTextureInfo.find (channel) == m_SDLTextureInfo.end ())
{ {