From 91d37e1c2af51fb27599695c22b5f11806833107 Mon Sep 17 00:00:00 2001 From: Ethan Morgan Date: Mon, 17 Nov 2025 23:14:13 +0000 Subject: [PATCH] fix: width & height issue on retina screens for the frame wasn't taking into account --- src/render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render.c b/src/render.c index ade4dc8..f086262 100755 --- a/src/render.c +++ b/src/render.c @@ -2271,8 +2271,10 @@ void r_window_get_size(r_ctx* ctx, int* w, int* h) { } void r_window_get_vsize(r_ctx* ctx, vec2 vec) { - vec[0] = (float)ctx->window.params.width; - vec[1] = (float)ctx->window.params.height; + int width, height; + glfwGetFramebufferSize(ctx->window.glfw, &width, &height); + vec[0] = (float)width; + vec[1] = (float)height; } uint8_t r_window_set_size(r_ctx* ctx, uint32_t width, uint32_t height) {