lib/win32/screenshot.rb in win32screenshot-1.0.1 vs lib/win32/screenshot.rb in win32screenshot-1.0.2
- old
+ new
@@ -1,13 +1,13 @@
require 'ffi'
require 'stringio' # this is needed for MiniMagick for now
require 'mini_magick'
-ENV["RAUTOMATION_ADAPTER"] = "ffi" # make sure that Ffi adapter is always used for RAutomation
+ENV["RAUTOMATION_ADAPTER"] = "win_ffi" # make sure that WinFfi adapter is always used for RAutomation
require 'rautomation'
require File.dirname(__FILE__) + '/screenshot/take'
require File.dirname(__FILE__) + '/screenshot/image'
require File.dirname(__FILE__) + '/screenshot/bitmap_maker'
# environment variables for bundled MiniMagick
ENV["PATH"] = "#{File.dirname(__FILE__) + "/../../ext"};#{ENV["PATH"]}"
-ENV["MAGICK_CODER_MODULE_PATH"] = File.dirname(__FILE__) + "/../../ext/modules/coders"
\ No newline at end of file
+ENV["MAGICK_CODER_MODULE_PATH"] = File.dirname(__FILE__) + "/../../ext/modules/coders"