summaryrefslogtreecommitdiffstats
path: root/test/test_evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-05 00:13:06 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-05 00:13:06 +0200
commitf3d11962e77d25d19a312b4baa1a390539b2187b (patch)
treed7a3842583a0607cba272a85b210f5947ed9ec57 /test/test_evas.rb
parente4baccaefd209a25daa3ff8d5277fe86aca1d379 (diff)
downloadffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.zip
ffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.tar.gz
all FFI into one module Efl::Native
Diffstat (limited to 'test/test_evas.rb')
-rw-r--r--test/test_evas.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_evas.rb b/test/test_evas.rb
index 34f32fb..6fdf111 100644
--- a/test/test_evas.rb
+++ b/test/test_evas.rb
@@ -13,7 +13,7 @@ def create_canvas w, h
e.output_method_set Evas::render_method_lookup("buffer")
e.output_viewport_set 0, 0, w, h
e.output_size_set w, h
- einfo = Evas::Native::EngineInfoBufferStruct.new e.engine_info_get
+ einfo = Native::EngineInfoBufferStruct.new e.engine_info_get
einfo[:info][:depth_type] = Evas::EVAS_ENGINE_BUFFER_DEPTH_ARGB32
einfo[:info][:dest_buffer] = pixels
einfo[:info][:dest_buffer_row_bytes] = w * FFI::type_size(:int);
@@ -44,7 +44,7 @@ def draw_scene c
end
#
def save_scene canvas, dest
- einfo = Evas::Native::EngineInfoBufferStruct.new canvas.engine_info_get
+ einfo = Native::EngineInfoBufferStruct.new canvas.engine_info_get
w, h = canvas.output_size_get
# PPM P6 format is dead simple to write:
p = FFI::Pointer.new :int, einfo[:info][:dest_buffer]