mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed bug 3048, "Crashes in Cocoa_SetWindowTitle"
This commit is contained in:
parent
65a1a3e7e9
commit
d0ba0c1d8a
@ -1428,7 +1428,7 @@ Cocoa_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
|
||||
{ @autoreleasepool
|
||||
{
|
||||
if (SetWindowStyle(window, GetWindowStyle(window))) {
|
||||
if (bordered) {
|
||||
if (bordered && window->title) {
|
||||
Cocoa_SetWindowTitle(_this, window); /* this got blanked out. */
|
||||
}
|
||||
}
|
||||
@ -1499,7 +1499,7 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
|
||||
s_moveHack = SDL_GetTicks();
|
||||
|
||||
/* When the window style changes the title is cleared */
|
||||
if (!fullscreen) {
|
||||
if (!fullscreen && window->title) {
|
||||
Cocoa_SetWindowTitle(_this, window);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user