1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

small cleanup

This commit is contained in:
AlexVinS 2014-06-01 21:09:47 +04:00
parent d707e55472
commit c7390316b7

View File

@ -509,10 +509,9 @@ void CSDL_Ext::update(SDL_Surface * what)
if(what)
SDL_UpdateRect(what, 0, 0, what->w, what->h);
#else
Rect rect(0,0,what->w,what->h);
if(!what)
return;
if(0 !=SDL_UpdateTexture(screenTexture, &rect, what->pixels, what->pitch))
if(0 !=SDL_UpdateTexture(screenTexture, nullptr, what->pixels, what->pitch))
logGlobal->errorStream() << __FUNCTION__ << "SDL_UpdateTexture " << SDL_GetError();
#endif // VCMI_SDL1