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;
SDL_QueryTexture (texture, &format, &access, &ow, &oh);
if (mode == EXPAND || channel == CHBACK)
{
w = LXIMAGE;
h = LYIMAGE;
}
else
{
w = ow;
h = oh;
}
auto m = mode == EXPAND || channel == CHBACK;
w = m ? LXIMAGE : ow;
h = m ? LYIMAGE : oh;
if (m_SDLTextureInfo.find (channel) == m_SDLTextureInfo.end ())
{