Window resize fixes

This commit is contained in:
luboslenco
2025-07-02 22:00:52 +02:00
parent 306bb80850
commit 5f0dfe9675
10 changed files with 46 additions and 17 deletions
+1 -2
View File
@@ -473,7 +473,6 @@ static char *clipboardString = NULL;
char buffer[1024];
void gpu_internal_resize(int width, int height);
static void init_pen_device(XDeviceInfo *info, struct x11_pen_device *pen, bool eraser);
static void load_lib(void **lib, const char *name) {
@@ -1198,7 +1197,7 @@ static bool _handle_messages() {
if (event.xconfigure.width != k_window->width || event.xconfigure.height != k_window->height) {
k_window->width = event.xconfigure.width;
k_window->height = event.xconfigure.height;
gpu_internal_resize(event.xconfigure.width, event.xconfigure.height);
gpu_resize(event.xconfigure.width, event.xconfigure.height);
iron_internal_call_resize_callback(event.xconfigure.width, event.xconfigure.height);
}
break;