From 0da57ef17cce929f8e7ad676ae3f16f9ffac69c6 Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 27 Sep 2005 03:41:48 +0000 Subject: [PATCH] Using the newly-added function instead of a hack; should fix any potential BCS-analog problems git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1878 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/intro.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sc2/src/sc2code/intro.c b/sc2/src/sc2code/intro.c index 48484a2bc..8a802f819 100644 --- a/sc2/src/sc2code/intro.c +++ b/sc2/src/sc2code/intro.c @@ -196,6 +196,7 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS) HOT_SPOT hs; int slot; COUNT piece; + COLOR SisBack; LockMutex (GraphicsLock); OldContext = SetContext (OffScreenContext); @@ -213,8 +214,11 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS) WANT_PIXMAP, r.extent.width, r.extent.height, 1 )); SetContextFGFrame (SisFrame); - SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (1, 1, 1), 7)); - DrawFilledRectangle (&r); + SetContextClipRect (NULL_PTR); + SisBack = BUILD_COLOR (MAKE_RGB15 (1, 1, 1), 7); + SetContextBackGroundColor (SisBack); + ClearDrawable (); + SetFrameTransparentColor (SisFrame, SisBack); s.frame = SetAbsFrameIndex (SkelFrame, 0); s.origin.x = 0; @@ -265,11 +269,6 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS) hs.y = r.extent.height / 2; SetFrameHot (SisFrame, hs); - /* TODO: this is a hack to get it to work - * anyone know how to do this better? */ - TFB_DrawCanvas_SetTransparentColor ( - ((PFRAME_DESC)SisFrame)->image->NormalImg, 8, 8, 8, TRUE); - SetContext (OldContext); FlushGraphics (); UnlockMutex (GraphicsLock);