mirror of
https://github.com/zenith391/OCEmu.git
synced 2025-09-28 23:47:41 -04:00
set sdl window to not grab mouse. this seems to be unnecessary most of the time, but not always.
This commit is contained in:
parent
c1e8835b82
commit
8c548cfc3d
@ -102,6 +102,8 @@ local window, renderer, texture, copytexture
|
|||||||
local function createWindow()
|
local function createWindow()
|
||||||
if not window then
|
if not window then
|
||||||
window = SDL.createWindow("OCEmu - screen@" .. address, SDL.WINDOWPOS_CENTERED, SDL.WINDOWPOS_CENTERED, width*8, height*16, SDL.WINDOW_SHOWN)
|
window = SDL.createWindow("OCEmu - screen@" .. address, SDL.WINDOWPOS_CENTERED, SDL.WINDOWPOS_CENTERED, width*8, height*16, SDL.WINDOW_SHOWN)
|
||||||
|
SDL.setWindowGrab(window, SDL.FALSE)
|
||||||
|
|
||||||
if window == ffi.C.NULL then
|
if window == ffi.C.NULL then
|
||||||
error(ffi.string(SDL.getError()))
|
error(ffi.string(SDL.getError()))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user