hs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | LICENSE

commit 8494f4bb4f0b775d3162e753481829a6498a5f25
parent 64c16fa58d1e95982dc0ea60406e11b15383cfa8
Author: Samdal <samdal@protonmail.com>
Date:   Thu,  7 Oct 2021 12:06:42 +0200

call framebuffer callback on startup

Diffstat:
Mhs_graphics.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/hs_graphics.h b/hs_graphics.h @@ -1302,6 +1302,9 @@ hs_init(hs_game_data* gd, const char *name, void(*framebuffer_size_callback)(GLF } if (framebuffer_size_callback) { glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); + int width, height; + glfwGetFramebufferSize(window, &width, &height); + framebuffer_size_callback(window, width, height); } gd->window = window;