Maximized flag in NewDisplayOptions is now independent of Resizable flag.

This commit is contained in:
Sander Schobers 2019-12-28 00:03:48 +01:00
parent 6151f28ef3
commit d7c1b47657

View File

@ -38,9 +38,9 @@ func NewDisplay(width, height int, options NewDisplayOptions) (*Display, error)
} }
if options.Resizable { if options.Resizable {
flags |= C.ALLEGRO_RESIZABLE flags |= C.ALLEGRO_RESIZABLE
if options.Maximized { }
flags |= C.ALLEGRO_MAXIMIZED if options.Maximized {
} flags |= C.ALLEGRO_MAXIMIZED
} }
if options.Vsync { if options.Vsync {
C.al_set_new_display_option(C.ALLEGRO_VSYNC, 1, C.ALLEGRO_SUGGEST) C.al_set_new_display_option(C.ALLEGRO_VSYNC, 1, C.ALLEGRO_SUGGEST)