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;
|
HOT_SPOT hs;
|
||||||
int slot;
|
int slot;
|
||||||
COUNT piece;
|
COUNT piece;
|
||||||
|
COLOR SisBack;
|
||||||
|
|
||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
OldContext = SetContext (OffScreenContext);
|
OldContext = SetContext (OffScreenContext);
|
||||||
@@ -213,8 +214,11 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS)
|
|||||||
WANT_PIXMAP, r.extent.width, r.extent.height, 1
|
WANT_PIXMAP, r.extent.width, r.extent.height, 1
|
||||||
));
|
));
|
||||||
SetContextFGFrame (SisFrame);
|
SetContextFGFrame (SisFrame);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (1, 1, 1), 7));
|
SetContextClipRect (NULL_PTR);
|
||||||
DrawFilledRectangle (&r);
|
SisBack = BUILD_COLOR (MAKE_RGB15 (1, 1, 1), 7);
|
||||||
|
SetContextBackGroundColor (SisBack);
|
||||||
|
ClearDrawable ();
|
||||||
|
SetFrameTransparentColor (SisFrame, SisBack);
|
||||||
|
|
||||||
s.frame = SetAbsFrameIndex (SkelFrame, 0);
|
s.frame = SetAbsFrameIndex (SkelFrame, 0);
|
||||||
s.origin.x = 0;
|
s.origin.x = 0;
|
||||||
@@ -265,11 +269,6 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS)
|
|||||||
hs.y = r.extent.height / 2;
|
hs.y = r.extent.height / 2;
|
||||||
SetFrameHot (SisFrame, hs);
|
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);
|
SetContext (OldContext);
|
||||||
FlushGraphics ();
|
FlushGraphics ();
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|||||||
Reference in New Issue
Block a user