mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
small cleanup
This commit is contained in:
parent
d707e55472
commit
c7390316b7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user