Maximized flag in NewDisplayOptions is now independent of Resizable flag.
This commit is contained in:
parent
6151f28ef3
commit
d7c1b47657
@ -38,10 +38,10 @@ 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 {
|
if options.Maximized {
|
||||||
flags |= C.ALLEGRO_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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user