Restore Cocoa title bar caption when adding border to a window.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 Sep 2012 11:36:36 -0400
changeset 6426 38ed71d9ae5f
parent 6425 60c08d8896e0
child 6427 34059553702a
Restore Cocoa title bar caption when adding border to a window.
src/video/cocoa/SDL_cocoawindow.m
--- a/src/video/cocoa/SDL_cocoawindow.m	Fri Sep 14 11:09:13 2012 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Sep 14 11:36:36 2012 -0400
@@ -830,6 +830,9 @@
     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
     if ([nswindow respondsToSelector:@selector(setStyleMask:)]) {
         [nswindow setStyleMask:GetWindowStyle(window)];
+        if (bordered) {
+            Cocoa_SetWindowTitle(_this, window);  // this got blanked out.
+        }
     }
     [pool release];
 #endif