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

This commit is contained in:
Sam Lantinga 2011-02-26 10:15:13 -08:00
parent fbdf7429d5
commit 9c8d95eab0

View file

@ -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! */