mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +00:00
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:
parent
3fd45abad8
commit
a0ce1efabe
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user