Jelajahi Sumber

Fixed map rendering

Ivan Savenko 2 tahun lalu
induk
melakukan
0000541291

+ 0 - 1
client/adventureMap/CAdventureMapInterface.cpp

@@ -286,7 +286,6 @@ void CAdventureMapInterface::deactivate()
 
 
 void CAdventureMapInterface::showAll(SDL_Surface * to)
 void CAdventureMapInterface::showAll(SDL_Surface * to)
 {
 {
-	CSDL_Ext::fillSurface(to, CSDL_Ext::toSDL(ColorRGBA(255, 0,255,255)));// FIXME: CONFIGURABLE ADVMAP - debug fill to detect any empty areas
 	CIntObject::showAll(to);
 	CIntObject::showAll(to);
 	LOCPLINT->cingconsole->show(to);
 	LOCPLINT->cingconsole->show(to);
 }
 }

+ 2 - 3
client/gui/CGuiHandler.cpp

@@ -184,9 +184,8 @@ std::shared_ptr<IShowActivatable> CGuiHandler::topInt()
 
 
 void CGuiHandler::totalRedraw()
 void CGuiHandler::totalRedraw()
 {
 {
-#ifdef VCMI_ANDROID
-	SDL_FillRect(screen2, NULL, SDL_MapRGB(screen2->format, 0, 0, 0));
-#endif
+	CSDL_Ext::fillSurface( screen2, Colors::BLACK);
+
 	for(auto & elem : objsToBlit)
 	for(auto & elem : objsToBlit)
 		elem->showAll(screen2);
 		elem->showAll(screen2);
 	CSDL_Ext::blitAt(screen2,0,0,screen);
 	CSDL_Ext::blitAt(screen2,0,0,screen);