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);