medfall

A super great game engine
Log | Files | Refs

commit e14f300f0db9a62046071753bd304286b1be40a8
parent 88fe552020fcc577d44a85bf8aad172b4c40a3e5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jul  9 12:19:50 +0300

Move the mouse cursor inside the window at startup

Diffstat:
gl.cc | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -155,6 +155,8 @@ GLFWwindow * gl_init( WindowType window_type ) { monitor_left + mode->width / 2 - total_width / 2, monitor_top + mode->height / 2 - total_height / 2 ); + glfwSetCursorPos( window, 0.5, 0.5 ); + window_size = v2u32( checked_cast< u32 >( width ), checked_cast< u32 >( height ) ); glfwMakeContextCurrent( window );