Browse Source

small cleanup

AlexVinS 11 years ago
parent
commit
c7390316b7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      client/gui/SDL_Extensions.cpp

+ 1 - 2
client/gui/SDL_Extensions.cpp

@@ -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