diff options
author | amy <[email protected]> | 2023-04-17 18:05:30 +0000 |
---|---|---|
committer | amy <[email protected]> | 2023-04-17 18:05:30 +0000 |
commit | c5112eebddcc7628cb6f3c8da7ad066e57961f16 (patch) | |
tree | da0b89f511d3ba55cd6c5d7de263e65db5d3493e /src/glfww.h | |
parent | d710bf84809da24127c08f6f2254ac49e8ac49ee (diff) |
aaa looking better:)
Diffstat (limited to 'src/glfww.h')
-rw-r--r-- | src/glfww.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glfww.h b/src/glfww.h index fb0eb81..f5e127a 100644 --- a/src/glfww.h +++ b/src/glfww.h @@ -9,8 +9,8 @@ #define __glfww_ #define win_clean() glfwTerminate(); -#define ab_to_vp(x,y,w,h,x1,y1) float x = 2 * ((float)x1/w) -1;\ - float y = 2 * ((float)y1/h) -1; +#define ab_to_vp(x,y,w,h,x1,y1) float x = 2 * ((float)x1/(w)) -1;\ + float y = 2 * ((float)y1/(h)) -1; GLFWwindow* glfw_init(); #define glfw_load(w) glfwSwapBuffers(w); void glfw_loop(GLFWwindow*window); |