1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 09:20:44 +00:00

fix miniPanelGameMenu wrong rendering (#810)

This commit is contained in:
Thomas Christlieb 2020-10-25 18:37:07 +01:00 committed by GitHub
parent bb9789d700
commit 2b469d302b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)