summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-01 20:49:54 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-01 20:49:54 +0200
commitd0b20b515e55dad3328191984bce5c898193446d (patch)
treed0232edaccabf7f7426e045be8b01b80f4f2b6a4 /lib
parentd56f34aa34caceeacf13b0bfe1923f4de04833a9 (diff)
downloadffi-efl-d0b20b515e55dad3328191984bce5c898193446d.zip
ffi-efl-d0b20b515e55dad3328191984bce5c898193446d.tar.gz
fix REvasObject#(geometry|color)_get
Diffstat (limited to 'lib')
-rw-r--r--lib/efl/evas.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index 3713e6b..3ecdf29 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -132,7 +132,7 @@ module Efl
y = FFI::MemoryPointer.new :int
w = FFI::MemoryPointer.new :int
h = FFI::MemoryPointer.new :int
- Efl::Evas.evas_object_geometry_get @evas, x, y, w, h
+ Efl::Evas.evas_object_geometry_get @ptr, x, y, w, h
[ x.read_int, y.read_int, w.read_int, h.read_int ]
end
def color_get
@@ -140,7 +140,7 @@ module Efl
g = FFI::MemoryPointer.new :int
b = FFI::MemoryPointer.new :int
a = FFI::MemoryPointer.new :int
- Efl::Evas.evas_object_color_get @evas, r, g, b, a
+ Efl::Evas.evas_object_color_get @ptr, r, g, b, a
[ r.read_int, g.read_int, b.read_int, a.read_int ]
end
end