summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/image.rb2
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