Restore the window title when the title bar is re-added to the window.
This commit is contained in:
parent
fbdf7429d5
commit
9c8d95eab0
1 changed files with 5 additions and 0 deletions
|
@ -825,6 +825,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
|
||||||
[nswindow setContentSize:rect.size];
|
[nswindow setContentSize:rect.size];
|
||||||
s_moveHack = SDL_GetTicks();
|
s_moveHack = SDL_GetTicks();
|
||||||
|
|
||||||
|
/* When the window style changes the title is cleared */
|
||||||
|
if (!fullscreen) {
|
||||||
|
Cocoa_SetWindowTitle(_this, window);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef FULLSCREEN_TOGGLEABLE
|
#ifdef FULLSCREEN_TOGGLEABLE
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
/* OpenGL is rendering to the window, so make it visible! */
|
/* OpenGL is rendering to the window, so make it visible! */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue