Skip to content
Permalink
Browse files

Fixed bug 3048, "Crashes in Cocoa_SetWindowTitle"

  • Loading branch information
DavidLudwig committed Jul 5, 2015
1 parent 65a1a3e commit d0ba0c1d8af4387672e5426b586ddd187be9bc7f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/cocoa/SDL_cocoawindow.m
@@ -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. */
}
}
@@ -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);
}

0 comments on commit d0ba0c1

Please sign in to comment.