diff options
| author | onelin <oscar@nelin.dk> | 2025-11-26 21:07:21 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-11-26 21:39:38 +0000 |
| commit | 51587ec974d532b68bb323a14d18f857ed357d74 (patch) | |
| tree | 6df7e55426bda1f749082680dc4f26da68647099 /src/platform_glfw.c | |
| parent | ffb11b627183797ca38712bde5d1438eedda1d76 (diff) | |
Add `window_get_size`
Diffstat (limited to 'src/platform_glfw.c')
| -rw-r--r-- | src/platform_glfw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform_glfw.c b/src/platform_glfw.c index 96b533c..5453258 100644 --- a/src/platform_glfw.c +++ b/src/platform_glfw.c @@ -17,7 +17,7 @@ static void window_resize_callback(GLFWwindow *restrict window, int width, int h static void framebuffer_resize_callback(GLFWwindow *restrict window, int width, int height); static void glfw_err_callback(int code, const char* description); static void render_init_opengl(Window *restrict w, const u32 flags); -static void window_size(GLFWwindow *restrict w, ivec2 *restrict dst); +void window_size_glfw(GLFWwindow *restrict w, ivec2 *restrict dst); Window* window_init_glfw(const char *restrict windowtitle, ivec2 windowsize, const u32 flags) { @@ -221,7 +221,7 @@ static void render_init_opengl(Window *restrict w, const u32 flags) { w->renderer = WINDOW_RENDERER_OPENGL; } -static void window_size(GLFWwindow *restrict w, ivec2 *restrict dst) { +void window_size_glfw(GLFWwindow *restrict w, ivec2 *restrict dst) { ivec2 wsize; vec2 wscaling; glfwGetWindowContentScale(w, &wscaling[0], &wscaling[1]); |
