diff options
| author | Tom Black <[email protected]> | 2017-06-07 11:26:18 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-06-12 12:09:57 -0400 |
| commit | a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f (patch) | |
| tree | 1bdc38eb75292daf6d798b1dca7b7711a42cf559 /lib | |
| parent | e8c4dbc50f6305e9e6a3cb3653e0871e3c14d944 (diff) | |
| download | ruby2d-a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f.tar.gz ruby2d-a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f.zip | |
Set image width and height in constructor
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/image.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ruby2d/image.rb b/lib/ruby2d/image.rb index 89e9b47..0faee11 100644 --- a/lib/ruby2d/image.rb +++ b/lib/ruby2d/image.rb @@ -19,6 +19,8 @@ module Ruby2D @x = opts[:x] || 0 @y = opts[:y] || 0 @z = opts[:z] || 0 + @width = opts[:width] || nil + @height = opts[:height] || nil @type_id = 4 |
