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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user