Restore Cocoa title bar caption when adding border to a window.
This commit is contained in:
parent
7f3b2ca47f
commit
fd7c6b9e79
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue