From a0ce1efabeded5df3b8f16396b80fb78ac7d4f80 Mon Sep 17 00:00:00 2001 From: joevt Date: Mon, 11 Mar 2024 05:05:06 -0700 Subject: [PATCH] display_sdl: Add Mouse Grabbed to window title. Necessary when the window is created after a restart while mouse is grabbed. --- devices/video/display_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/video/display_sdl.cpp b/devices/video/display_sdl.cpp index e1b322a..b2544be 100644 --- a/devices/video/display_sdl.cpp +++ b/devices/video/display_sdl.cpp @@ -56,7 +56,8 @@ bool Display::configure(int width, int height) { if (!impl->display_wnd) { // create display window impl->display_wnd = SDL_CreateWindow( - "DingusPPC Display", + SDL_GetRelativeMouseMode() ? + "DingusPPC Display (Mouse Grabbed)" : "DingusPPC Display", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height,