1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed map rendering

This commit is contained in:
Ivan Savenko 2023-05-01 17:27:49 +03:00
parent 63a1efbdc2
commit 0000541291
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

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