1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00

Render HUD before Panels (in this Case 'Panels' only does mean Inventory Panel). This is to avoid Entity Labels to be renderd above the Inventory Panel. Fixes #936

This commit is contained in:
ThomasChr 2021-01-01 20:49:49 +01:00
parent 17fe8f3277
commit db87175872

View File

@ -795,11 +795,11 @@ func (g *GameControls) isInActiveMenusRect(px, py int) bool {
// Render draws the GameControls onto the target // Render draws the GameControls onto the target
func (g *GameControls) Render(target d2interface.Surface) error { func (g *GameControls) Render(target d2interface.Surface) error {
if err := g.renderPanels(target); err != nil { if err := g.hud.Render(target); err != nil {
return err return err
} }
if err := g.hud.Render(target); err != nil { if err := g.renderPanels(target); err != nil {
return err return err
} }