From d7c1b4765701c2afabe8100aead8d3a6d935bcad Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Sat, 28 Dec 2019 00:03:48 +0100 Subject: [PATCH] Maximized flag in NewDisplayOptions is now independent of Resizable flag. --- display.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display.go b/display.go index f693199..230e424 100644 --- a/display.go +++ b/display.go @@ -38,9 +38,9 @@ func NewDisplay(width, height int, options NewDisplayOptions) (*Display, error) } if options.Resizable { flags |= C.ALLEGRO_RESIZABLE - if options.Maximized { - flags |= C.ALLEGRO_MAXIMIZED - } + } + if options.Maximized { + flags |= C.ALLEGRO_MAXIMIZED } if options.Vsync { C.al_set_new_display_option(C.ALLEGRO_VSYNC, 1, C.ALLEGRO_SUGGEST)