summaryrefslogtreecommitdiffstats
path: root/test/test_evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:09:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:09:41 +0200
commit19324a30a17c6ea0b3d77d34160841ef90ce3ed1 (patch)
treea795d324e7822e433dcd66a4057f69d4ecc20d86 /test/test_evas.rb
parent0035feb9b4f29f06ffd430b763534f40604af4a9 (diff)
downloadffi-efl-19324a30a17c6ea0b3d77d34160841ef90ce3ed1.zip
ffi-efl-19324a30a17c6ea0b3d77d34160841ef90ce3ed1.tar.gz
set hierarchy n lib and spec directories
Diffstat (limited to 'test/test_evas.rb')
-rw-r--r--test/test_evas.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_evas.rb b/test/test_evas.rb
index 516f35e..b393e82 100644
--- a/test/test_evas.rb
+++ b/test/test_evas.rb
@@ -2,7 +2,6 @@
# -*- coding: UTF-8 -*-
#
require 'efl/evas'
-require 'efl/eina_list'
#
include Efl
#
@@ -32,13 +31,16 @@ def destroy_canvas c, pixels
end
#
def draw_scene c
- updates = Eina::EinaList.new c.render_updates
+ updates = c.render_updates
+ Evas::render_updates_free updates
# FIXME needs EinaRectangle
+# require 'efl/eina/eina_list'
+# updates = Eina::EinaList.new c.render_updates
# updates.each do |u|
# r = Eina::EinaRectangle.new u
# puts "UPDATED REGION: pos: #{r[:x]}, #{r[:y]} size: #{r[:w]}x#{r[:h]}"
# end
- Evas::render_updates_free updates.ptr
+# Evas::render_updates_free updates.ptr
end
#
def save_scene canvas, dest