From 878ada6dfb9885dd9aad88f5733f34f5c79333d6 Mon Sep 17 00:00:00 2001 From: Kevin Wellwood <34276849+kwellwood@users.noreply.github.com> Date: Sat, 18 Jan 2025 10:46:55 -0500 Subject: [PATCH] Fixed initialization of the resize event thread Vars end_resize_event_thread and resize_event_thread_ended were uninitialized in init. This prevented the resize event thread from running a second time if allegro was shutdown and then initialized again in the same application run. --- src/win/wwindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win/wwindow.c b/src/win/wwindow.c index 2b2e1cf4b..fdf013c60 100644 --- a/src/win/wwindow.c +++ b/src/win/wwindow.c @@ -1046,6 +1046,8 @@ int _al_win_init_window(void) resize_event_thread_mutex = al_create_mutex(); _al_vector_init(&resizing_displays, sizeof(ALLEGRO_DISPLAY_WIN *)); + end_resize_event_thread = false; + resize_event_thread_ended = false; _beginthread(resize_event_thread_proc, 0, 0); return true;