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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user