Dominaezzz / kgl

Thin multiplatform wrappers for graphics.
Apache License 2.0
105 stars 13 forks source link

can't switch from fullscreen to windowed mode #33

Closed LastExceed closed 3 years ago

LastExceed commented 3 years ago

to switch to windowed mode the monitor ptr must be set to null, however the monitor param of kgl's window.setMonitor() function is non-nullable, making this operation impossible

Dominaezzz commented 3 years ago

Ah rip, that's a bug.

If you're not using mpp you can call glfwSetWindowMonitor directly as a workaround.

Feel free to send a PR in the meantime. Dunno when I'll get to this myself.

nlbuescher commented 3 years ago

Created a fix. CI failed because of apt though. Gonna try again tomorrow.

nlbuescher commented 3 years ago

fixed with #34. Will be in next release