From 60ed17d0f3213a20a5b5f3a47a8476e72b3aa4b6 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Fri, 25 Apr 2003 18:03:41 +0000 Subject: [PATCH] subtitle_cache width&height now matches comm window instead of whole screen git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@933 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/comm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/comm.c b/sc2/src/sc2code/comm.c index 606ff3e7e..91648551d 100644 --- a/sc2/src/sc2code/comm.c +++ b/sc2/src/sc2code/comm.c @@ -523,7 +523,8 @@ init_communication (void) subtitle_mutex = CreateMutex (); init_xform_control (); - canvas = TFB_DrawCanvas_New_TrueColor (ScreenWidth, ScreenHeight, FALSE); + canvas = TFB_DrawCanvas_New_TrueColor (SIS_SCREEN_WIDTH, + SIS_SCREEN_HEIGHT - SLIDER_Y - SLIDER_HEIGHT + 2, FALSE); subtitle_cache = TFB_DrawImage_New (canvas); TFB_DrawCanvas_SetTransparentColor (subtitle_cache->NormalImg, 0, 0, 255, TRUE); }