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:
parent
63a1efbdc2
commit
0000541291
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user