medfall

A super great game engine
Log | Files | Refs

commit 5e107a7875ed126246f2a3c0d1d2f6a56b2f24b1
parent bac4573e2bf1024a1ff2e975bd794880bef2cff3
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Aug 28 20:42:46 +0100

Start with the cursor centred

Diffstat:
gl.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gl.cc b/gl.cc @@ -170,7 +170,7 @@ 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 ); + glfwSetCursorPos( window, mode->width / 2, mode->height / 2 ); window_size = v2u32( checked_cast< u32 >( width ), checked_cast< u32 >( height ) );