浏览代码

Fixed map rendering

Ivan Savenko 2 年之前
父节点
当前提交
0000541291
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 0 1
      client/adventureMap/CAdventureMapInterface.cpp
  2. 2 3
      client/gui/CGuiHandler.cpp

+ 0 - 1
client/adventureMap/CAdventureMapInterface.cpp

@@ -286,7 +286,6 @@ void CAdventureMapInterface::deactivate()
 
 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);
 	LOCPLINT->cingconsole->show(to);
 }

+ 2 - 3
client/gui/CGuiHandler.cpp

@@ -184,9 +184,8 @@ std::shared_ptr<IShowActivatable> CGuiHandler::topInt()
 
 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)
 		elem->showAll(screen2);
 	CSDL_Ext::blitAt(screen2,0,0,screen);