mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-12-26 12:06:24 -05:00
fix miniPanelGameMenu wrong rendering (#810)
This commit is contained in:
parent
bb9789d700
commit
2b469d302b
@ -99,8 +99,8 @@ func (m *miniPanel) Render(target d2interface.Surface) error {
|
||||
}
|
||||
|
||||
width, height := target.GetSize()
|
||||
halfW, halfH := width>>1, height>>1
|
||||
x, y := halfW+containerOffsetX, halfH+containerOffsetY
|
||||
halfW := width >> 1
|
||||
x, y := halfW+containerOffsetX, height+containerOffsetY
|
||||
|
||||
m.container.SetPosition(x, y)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user