forgot check for SDL1

This commit is contained in:
Brad Parker 2017-01-19 00:36:29 -05:00
parent b44c8c9995
commit 009c1a45b7

View File

@ -282,7 +282,8 @@ static void sdl_ctx_update_title(void *data, video_frame_info_t *video_info)
if (sdl && title[0])
SDL_SetWindowTitle(sdl->g_win, title);
#else
SDL_WM_SetCaption(title, NULL);
if (title[0])
SDL_WM_SetCaption(title, NULL);
#endif
}
}