mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetics
This commit is contained in:
parent
438c01181e
commit
bf31378ffc
@ -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 ())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user