diff options
| author | Tom Black <[email protected]> | 2016-07-18 00:23:14 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2016-07-18 00:23:14 -0500 |
| commit | f3e0c7c01809efcca866d6add31ede575add1d78 (patch) | |
| tree | fca728ac645f5fb42c42112725d45ca7060cfa8f /lib | |
| parent | bc8c082434007a8423afd34ea90657ba260d5dbd (diff) | |
| download | ruby2d-f3e0c7c01809efcca866d6add31ede575add1d78.tar.gz ruby2d-f3e0c7c01809efcca866d6add31ede575add1d78.zip | |
Set window flags
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/window.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb index 69a4222..63b0d12 100644 --- a/lib/ruby2d/window.rb +++ b/lib/ruby2d/window.rb @@ -7,6 +7,7 @@ module Ruby2D def initialize(width: 640, height: 480, title: "Ruby 2D", fps: 60, vsync: true) @width, @height, @title = width, height, title @background = Color.new([0.0, 0.0, 0.0, 1.0]) + @resizable = false @mouse_x = @mouse_y = 0 @fps_cap = fps @fps = 60 @@ -35,6 +36,10 @@ module Ruby2D @title = opts[:title] || @title @width = opts[:width] || @width @height = opts[:height] || @height + @resizable = opts[:resizable] || @resizable + @borderless = opts[:borderless] || @borderless + @fullscreen = opts[:fullscreen] || @fullscreen + @highdpi = opts[:highdpi] || @highdpi if Color.is_valid? opts[:background] @background = Color.new(opts[:background]) end |
