From f77e6c370d9958df60fb61f3629f63934b5f0e61 Mon Sep 17 00:00:00 2001 From: John Galvin <96908304+Johnnyg63@users.noreply.github.com> Date: Fri, 23 Oct 2026 16:02:16 +0100 Subject: [PATCH] 312-delay-to-close-application-after-onusercreate --- dev/src/host_win_winapi.cpp | 1 + olcPixelGameEngine3.h | 1 + 2 files changed, 2 insertions(+) diff --git a/dev/src/host_win_winapi.cpp b/dev/src/host_win_winapi.cpp index 8340cc54..c4cfb1fa 100644 --- a/dev/src/host_win_winapi.cpp +++ b/dev/src/host_win_winapi.cpp @@ -25,6 +25,7 @@ namespace olc::host if (!this->OnSystemThreadStart()) { // PGE->OnContextStart() failed, or user aborted OnUserCreate() + systemActive = false; // Ensure Windows message loop exits return; } diff --git a/olcPixelGameEngine3.h b/olcPixelGameEngine3.h index 2a0e918d..d2234459 100644 --- a/olcPixelGameEngine3.h +++ b/olcPixelGameEngine3.h @@ -10756,6 +10756,7 @@ namespace olc::host if (!this->OnSystemThreadStart()) { // PGE->OnContextStart() failed, or user aborted OnUserCreate() + systemActive = false; // Ensure Windows message loop exits return; }