diff options
| author | Tom Black <[email protected]> | 2018-09-26 20:01:42 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-09-26 20:01:42 -0700 |
| commit | 344016aeab5f24edcb30fdcf23701ba12bc226a9 (patch) | |
| tree | f8fbc3cad3bd48b173b8da8c4c88cc1c5129d871 /lib | |
| parent | 26129e7143a4dfc68b705feabf595660e7b2256e (diff) | |
| download | ruby2d-344016aeab5f24edcb30fdcf23701ba12bc226a9.tar.gz ruby2d-344016aeab5f24edcb30fdcf23701ba12bc226a9.zip | |
Add ability to set the window icon
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/window.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb index fee0893..5b0b7cb 100644 --- a/lib/ruby2d/window.rb +++ b/lib/ruby2d/window.rb @@ -189,6 +189,7 @@ module Ruby2D if Color.is_valid? opts[:background] @background = Color.new(opts[:background]) end + @icon = opts[:icon] || @icon @width = opts[:width] || @width @height = opts[:height] || @height @fps_cap = opts[:fps_cap] || @fps_cap |
