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)