display_sdl: Add Mouse Grabbed to window title.

Necessary when the window is created after a restart while mouse is grabbed.
This commit is contained in:
joevt 2024-03-11 05:05:06 -07:00 committed by dingusdev
parent 3fd45abad8
commit a0ce1efabe

View File

@ -56,7 +56,8 @@ bool Display::configure(int width, int height) {
if (!impl->display_wnd) { // create display window if (!impl->display_wnd) { // create display window
impl->display_wnd = SDL_CreateWindow( impl->display_wnd = SDL_CreateWindow(
"DingusPPC Display", SDL_GetRelativeMouseMode() ?
"DingusPPC Display (Mouse Grabbed)" : "DingusPPC Display",
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
width, height, width, height,