mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Resize hotbar immediately before drawing (#12930)
This commit is contained in:
parent
d1b80b462e
commit
81bfc9c7a2
@ -1204,8 +1204,6 @@ void Game::run()
|
|||||||
processQueues();
|
processQueues();
|
||||||
|
|
||||||
m_game_ui->clearInfoText();
|
m_game_ui->clearInfoText();
|
||||||
hud->resizeHotbar();
|
|
||||||
|
|
||||||
|
|
||||||
updateProfilers(stats, draw_times, dtime);
|
updateProfilers(stats, draw_times, dtime);
|
||||||
processUserInput(dtime);
|
processUserInput(dtime);
|
||||||
|
@ -49,6 +49,8 @@ void DrawHUD::run(PipelineContext &context)
|
|||||||
if (context.shadow_renderer)
|
if (context.shadow_renderer)
|
||||||
context.shadow_renderer->drawDebug();
|
context.shadow_renderer->drawDebug();
|
||||||
|
|
||||||
|
context.hud->resizeHotbar();
|
||||||
|
|
||||||
if (context.draw_crosshair)
|
if (context.draw_crosshair)
|
||||||
context.hud->drawCrosshair();
|
context.hud->drawCrosshair();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user