Skip to content

Commit

Permalink
Fixed bug 3048, "Crashes in Cocoa_SetWindowTitle"
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Jul 5, 2015
1 parent 65a1a3e commit d0ba0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1428,7 +1428,7 @@ - (void)resetCursorRects
{ @autoreleasepool
{
if (SetWindowStyle(window, GetWindowStyle(window))) {
if (bordered) {
if (bordered && window->title) {
Cocoa_SetWindowTitle(_this, window); /* this got blanked out. */
}
}
Expand Down Expand Up @@ -1499,7 +1499,7 @@ - (void)resetCursorRects
s_moveHack = SDL_GetTicks();

/* When the window style changes the title is cleared */
if (!fullscreen) {
if (!fullscreen && window->title) {
Cocoa_SetWindowTitle(_this, window);
}

Expand Down

0 comments on commit d0ba0c1

Please sign in to comment.