SDL_GetGlobalMouseState function if available (this function tracks the mouse position even when it leaves the window)
SDL_GetGlobalMouseState is only available in SDL 2.0.4, which is still not out by now (pending tickets: https://bitly.com/sdl204-todo). So it probably only fixes mouse_x and mouse_y if you use brew install sdl2 --HEAD on OS X.C:/Ruby22/lib/ruby/gems/2.2.0/gems/gosu-0.9.2-x86-mingw32/lib/gosu/swig_patches.rb:63:in unsafe_gl': There is no rendering queue for this operation (RuntimeError)
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/gosu-0.9.2-x86-mingw32/lib/gosu/swig_patches.rb:63:in gl'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/gosu-0.9.2-x86-mingw32/lib/gosu/patches.rb:108:in block (2 levels) in <class:Window>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/ashton-0.1.6/lib/ashton/gosu_ext/window.rb:37:in gl'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/ashton-0.1.6/lib/ashton/shader.rb:105:in enable'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/ashton-0.1.6/lib/ashton/shader.rb:68:in initialize'
from D:/Ruby/Gry/Projekty/Mariovania/data/scripts/system.rb:850:in new'
from D:/Ruby/Gry/Projekty/Mariovania/data/scripts/system.rb:850:in initialize'
from Mariovania.rb:69:in new'
from Mariovania.rb:69:in <main>':tileable parameter to ensure crisp tile boundaries?

enable_undocumented_retrofication with a new flag during image creation, e.g. Image.new("tile.png", :retro => true), same for load_tiles etc.; would this help?Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill