From f8f17f630b16267e164f27b79f199ca8e59023e4 Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 28 Dec 2005 15:46:21 +0000 Subject: [PATCH] Semantical change of background clearing git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2134 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/intro.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sc2/src/sc2code/intro.c b/sc2/src/sc2code/intro.c index 4c7380c55..24fa9c277 100644 --- a/sc2/src/sc2code/intro.c +++ b/sc2/src/sc2code/intro.c @@ -693,7 +693,6 @@ ShowPresentation (STRING PresStr) FONT OldFont; RECT OldRect; PRESENTATION_INPUT_STATE pis; - RECT r = {{0, 0}, {SCREEN_WIDTH, SCREEN_HEIGHT}}; pis.SlideShow = PresStr; if (!pis.SlideShow) @@ -706,9 +705,9 @@ ShowPresentation (STRING PresStr) GetContextClipRect (&OldRect); OldFont = SetContextFont (NULL); /* paint black rect over screen */ - SetContextForeGroundColor (BUILD_COLOR ( + SetContextBackGroundColor (BUILD_COLOR ( MAKE_RGB15 (0x0, 0x0, 0x0), 0x00)); - DrawFilledRectangle (&r); + ClearDrawable (); UnlockMutex (GraphicsLock); FlushInput ();