mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 18:25:16 -05:00
Restore Cocoa title bar caption when adding border to a window.
This commit is contained in:
@@ -830,6 +830,9 @@ Cocoa_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user