summaryrefslogtreecommitdiffstats
path: root/spec/evas_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-06 16:47:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-06 16:47:37 +0200
commitb7ae3255dbe5227660fd72ff05ec9734a42f9140 (patch)
tree9207239d4e8af187d901ac4ce6776108537595a2 /spec/evas_spec.rb
parent13e43d1800ec12698353c0e5836b662843eea365 (diff)
downloadffi-efl-b7ae3255dbe5227660fd72ff05ec9734a42f9140.zip
ffi-efl-b7ae3255dbe5227660fd72ff05ec9734a42f9140.tar.gz
bugfix last minutegit status0.0.5
Diffstat (limited to 'spec/evas_spec.rb')
-rw-r--r--spec/evas_spec.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index ccba590..6bde803 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -5,27 +5,27 @@ require 'efl/eina_list'
require 'efl/ecore'
require 'efl/evas'
#
-def realize_evas
- width = 800
- height = 600
- @pixels = FFI::MemoryPointer.new :int, width*height
- @e = Evas::REvas.new
- @e.output_method_set Evas::render_method_lookup("buffer")
- @e.output_viewport_set 0, 0, width, height
- @e.output_size_set width, height
- einfo = Native::EngineInfoBufferStruct.new @e.engine_info
- einfo[:info][:depth_type] = Efl::Evas::EVAS_ENGINE_BUFFER_DEPTH_ARGB32
- einfo[:info][:dest_buffer] = @pixels
- einfo[:info][:dest_buffer_row_bytes] = width * FFI::type_size(:int);
- einfo[:info][:use_color_key] = 0;
- einfo[:info][:alpha_threshold] = 0;
- einfo[:info][:func][:new_update_region] = nil #FFI::Pointer::NULL;
- einfo[:info][:func][:free_update_region] = nil #FFI::Pointer::NULL;
- @e.engine_info_set einfo
-end
-#
describe Efl::Evas do
#
+ def realize_evas
+ width = 800
+ height = 600
+ @pixels = FFI::MemoryPointer.new :int, width*height
+ @e = Evas::REvas.new
+ @e.output_method_set Evas::render_method_lookup("buffer")
+ @e.output_viewport_set 0, 0, width, height
+ @e.output_size_set width, height
+ einfo = Native::EngineInfoBufferStruct.new @e.engine_info
+ einfo[:info][:depth_type] = Evas::EVAS_ENGINE_BUFFER_DEPTH_ARGB32
+ einfo[:info][:dest_buffer] = @pixels
+ einfo[:info][:dest_buffer_row_bytes] = width * FFI::type_size(:int);
+ einfo[:info][:use_color_key] = 0;
+ einfo[:info][:alpha_threshold] = 0;
+ einfo[:info][:func][:new_update_region] = nil #FFI::Pointer::NULL;
+ einfo[:info][:func][:free_update_region] = nil #FFI::Pointer::NULL;
+ @e.engine_info_set einfo
+ end
+ #
before(:all) {
Evas = Efl::Evas
Native = Efl::Native unless Kernel.const_defined? 'Native'