Closed inkeliz closed 4 years ago
Seems that the problem is related to gameWidth
and gameHeight
, at that line:
The order seems wrong.
That issue can be fix using:
if fullscreen {
width = mode.Width
height = mode.Height
glfw.WindowHint(glfw.Decorated, 0)
} else {
monitor = nil
}
gameWidth = float32(width)
gameHeight = float32(height)
Should I submit a PR?
Sounds great to me. Pull requests are always welcome!
There's a bug at fullscreen mode, that didn't set Width/Height correctly. I could reproduce that issue using the TrafficManage with one change:
Replacing:
By:
That small change causes the camera to move without move the cursor to the edge, the camera will keep move until reach the end.
It's possible to fix using the
glfw
directly, but I think Engo must do that itself:I'm looking into the Engo code to find the bug.