1
0
forked from 0ad/0ad

That what mimo said.

This was SVN commit r19684.
This commit is contained in:
elexis 2017-05-28 17:45:17 +00:00
parent feedca18cd
commit d44a407fc4

View File

@ -70,7 +70,7 @@ public:
surface = SDL_CreateRGBSurfaceFrom(bgra_img, (int)t.m_Width, (int)t.m_Height, 32, (int)t.m_Width*4, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
if (!surface)
return ERR::FAIL;
if (scale != 1.0)
if(scale != 1.0)
{
SDL_Surface* scaled_surface = SDL_CreateRGBSurface(0, surface->w * scale, surface->h * scale, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
if (!scaled_surface)