From d4f9e828f61f3c6d02f646f0646e9dbecbb76a49 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 8 Oct 2013 00:34:32 +0000 Subject: Set window title and icon on ENDOOM window to match main game window. Subversion-branch: /branches/v2-branch Subversion-revision: 2695 --- src/i_endoom.c | 3 ++- src/i_video.c | 8 ++++---- src/i_video.h | 3 +++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/i_endoom.c b/src/i_endoom.c index f3fa1cb2..1381dc42 100644 --- a/src/i_endoom.c +++ b/src/i_endoom.c @@ -48,7 +48,8 @@ void I_Endoom(byte *endoom_data) // Set up text mode screen TXT_Init(); - TXT_SetWindowTitle(PACKAGE_STRING); + I_InitWindowTitle(); + I_InitWindowIcon(); // Write the data to the screen memory diff --git a/src/i_video.c b/src/i_video.c index 99446666..46264fdf 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1205,7 +1205,7 @@ void I_SetWindowTitle(char *title) // the title set with I_SetWindowTitle. // -static void I_InitWindowTitle(void) +void I_InitWindowTitle(void) { char *buf; @@ -1220,18 +1220,18 @@ static void I_InitWindowTitle(void) // Set the application icon -static void I_InitWindowIcon(void) +void I_InitWindowIcon(void) { SDL_Surface *surface; Uint8 *mask; int i; // Generate the mask - + mask = malloc(icon_w * icon_h / 8); memset(mask, 0, icon_w * icon_h / 8); - for (i=0; i