summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-14 22:45:32 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-14 22:45:32 +0100
commit796e15aa85797699fb1b021ff66d28f850a3462a (patch)
tree744a26c4bbcffa1ebce7fc3fcd9f899d01172142 /lib
parentc79d0535e77f0799f422584e555a6d3540bbf98d (diff)
downloadffi-efl-796e15aa85797699fb1b021ff66d28f850a3462a.zip
ffi-efl-796e15aa85797699fb1b021ff66d28f850a3462a.tar.gz
REvasObject#center_set: convert move() arguments to int
Diffstat (limited to 'lib')
-rw-r--r--lib/efl/evas.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index e65a710..fbf5283 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -188,7 +188,7 @@ module Efl
alias :center :center_get
def center_set x, y
g = geometry_get
- move x-(g[2]/2.0), y-(g[3]/2.0)
+ move (x-(g[2]/2.0)).to_i, (y-(g[3]/2.0)).to_i
end
alias :center= :center_set
def size