1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-11 18:20:42 +00:00

fixed broken viewport while side menu is opened (#464) (#465)

This commit is contained in:
Natureknight 2020-06-26 16:15:45 +03:00 committed by GitHub
parent 3a4e9a95a3
commit 875081f6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ func (v *Viewport) toLeft() {
return
}
v.screenRect.Width = v.defaultScreenRect.Width / 2
v.screenRect.Left = v.defaultScreenRect.Left + v.defaultScreenRect.Width/2
v.align = left
}
@ -170,7 +171,6 @@ func (v *Viewport) toRight() {
return
}
v.screenRect.Width = v.defaultScreenRect.Width / 2
v.screenRect.Left = v.defaultScreenRect.Left + v.defaultScreenRect.Width/2
v.align = right
}