Skip to content

Commit

Permalink
Fix glitch where a centered window would move after showing
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 31, 2019
1 parent 5ce5a59 commit e8e2dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/gl/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (w *window) SetFullScreen(full bool) {
func (w *window) CenterOnScreen() {
viewWidth, viewHeight := w.pixelSize()

runOnMainAsync(func() {
runOnMain(func() {
// get window dimensions in pixels
monitor := w.getMonitorForWindow()
monMode := monitor.GetVideoMode()
Expand Down

0 comments on commit e8e2dbc

Please sign in to comment.