mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
map draw improvements
This commit is contained in:
@@ -93,10 +93,6 @@ void Engine::run()
|
||||
|
||||
rootContainer->render();
|
||||
|
||||
// render fps
|
||||
if(m_calculateFps)
|
||||
defaultFont->renderText(fpsText, Point(g_graphics.getScreenSize().width() - fpsTextSize.width() - 10, 10));
|
||||
|
||||
// todo remove. render map
|
||||
g_game.getMap()->draw(0, 0);
|
||||
|
||||
@@ -108,6 +104,10 @@ void Engine::run()
|
||||
}
|
||||
//item->draw(1, 1, 7);
|
||||
|
||||
// render fps
|
||||
if(m_calculateFps)
|
||||
defaultFont->renderText(fpsText, Point(g_graphics.getScreenSize().width() - fpsTextSize.width() - 10, 10));
|
||||
|
||||
g_graphics.endRender();
|
||||
|
||||
// swap buffers
|
||||
|
Reference in New Issue
Block a user