Semantical change of background clearing

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2134 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-12-28 15:46:21 +00:00
parent 5797b4982e
commit f8f17f630b
+2 -3
View File
@@ -693,7 +693,6 @@ ShowPresentation (STRING PresStr)
FONT OldFont; FONT OldFont;
RECT OldRect; RECT OldRect;
PRESENTATION_INPUT_STATE pis; PRESENTATION_INPUT_STATE pis;
RECT r = {{0, 0}, {SCREEN_WIDTH, SCREEN_HEIGHT}};
pis.SlideShow = PresStr; pis.SlideShow = PresStr;
if (!pis.SlideShow) if (!pis.SlideShow)
@@ -706,9 +705,9 @@ ShowPresentation (STRING PresStr)
GetContextClipRect (&OldRect); GetContextClipRect (&OldRect);
OldFont = SetContextFont (NULL); OldFont = SetContextFont (NULL);
/* paint black rect over screen */ /* paint black rect over screen */
SetContextForeGroundColor (BUILD_COLOR ( SetContextBackGroundColor (BUILD_COLOR (
MAKE_RGB15 (0x0, 0x0, 0x0), 0x00)); MAKE_RGB15 (0x0, 0x0, 0x0), 0x00));
DrawFilledRectangle (&r); ClearDrawable ();
UnlockMutex (GraphicsLock); UnlockMutex (GraphicsLock);
FlushInput (); FlushInput ();