1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

screen surface is now private member of ScreenHandler instead of global

This commit is contained in:
Ivan Savenko
2025-02-10 17:23:20 +00:00
parent 31e627f128
commit eb7587c000
16 changed files with 85 additions and 40 deletions

View File

@@ -260,6 +260,11 @@ void CursorHandler::updateSpellcastCursor()
}
void CursorHandler::render()
{
cursor->render();
}
void CursorHandler::update()
{
if(!showing)
return;
@@ -267,7 +272,7 @@ void CursorHandler::render()
if (type == Cursor::Type::SPELLBOOK)
updateSpellcastCursor();
cursor->render();
cursor->update();
}
void CursorHandler::hide()