Commit 9c8d95ea authored by Sam Lantinga's avatar Sam Lantinga

Restore the window title when the title bar is re-added to the window.

parent fbdf7429
......@@ -825,6 +825,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
[nswindow setContentSize:rect.size];
s_moveHack = SDL_GetTicks();
/* When the window style changes the title is cleared */
if (!fullscreen) {
Cocoa_SetWindowTitle(_this, window);
}
#ifdef FULLSCREEN_TOGGLEABLE
if (fullscreen) {
/* OpenGL is rendering to the window, so make it visible! */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment