Make metal work

This commit is contained in:
luboslenco
2025-04-24 22:19:44 +02:00
parent fff6ced18f
commit bf2dda291d
85 changed files with 1292 additions and 1794 deletions
+2 -4
View File
@@ -340,8 +340,6 @@ int iron_window_display() {
}
void iron_window_destroy() {
iron_gpu_internal_destroy_window();
xlib.XFlush(x11_ctx.display);
struct iron_x11_window *window = &x11_ctx.windows[0];
xlib.XDestroyIC(window->xInputContext);
@@ -475,7 +473,7 @@ static char *clipboardString = NULL;
char buffer[1024];
void iron_internal_resize(int width, int height);
void iron_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) {
@@ -1200,7 +1198,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;
iron_internal_resize(event.xconfigure.width, event.xconfigure.height);
iron_gpu_internal_resize(event.xconfigure.width, event.xconfigure.height);
iron_internal_call_resize_callback(event.xconfigure.width, event.xconfigure.height);
}
break;