Cleaner and fixed SetFlashRect interface for menu rect

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2293 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2006-03-24 21:55:20 +00:00
parent b6bb046ed6
commit 1030ede817
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -1476,7 +1476,7 @@ SetFlashRect (PRECT pRect, FRAME f)
old_f = flash_frame; old_f = flash_frame;
flash_rect1 = flash_rect; flash_rect1 = flash_rect;
if (pRect != (PRECT)~0L) if (pRect != SFR_MENU_3DO && pRect != SFR_MENU_ANY)
{ {
GetContextClipRect (&clip_r); GetContextClipRect (&clip_r);
OldContext = SetContext (ScreenContext); OldContext = SetContext (ScreenContext);
@@ -1484,7 +1484,7 @@ SetFlashRect (PRECT pRect, FRAME f)
else else
{ {
//Don't flash when using the PC menu //Don't flash when using the PC menu
if (optWhichMenu == OPT_PC) if (optWhichMenu == OPT_PC && pRect != SFR_MENU_ANY)
{ {
OldContext = SetContext (ScreenContext); OldContext = SetContext (ScreenContext);
pRect = 0; pRect = 0;
+2
View File
@@ -252,6 +252,8 @@ extern void InitSISContexts (void);
extern void DrawSISFrame (void); extern void DrawSISFrame (void);
extern void ClearSISRect (BYTE ClearFlags); extern void ClearSISRect (BYTE ClearFlags);
extern void SetFlashRect (PRECT pRect, FRAME f); extern void SetFlashRect (PRECT pRect, FRAME f);
#define SFR_MENU_3DO ((PRECT)~0L)
#define SFR_MENU_ANY ((PRECT)~1L)
extern void DrawHyperCoords (POINT puniverse); extern void DrawHyperCoords (POINT puniverse);
extern void DrawSISTitle (UNICODE *pStr); extern void DrawSISTitle (UNICODE *pStr);
extern BOOLEAN DrawSISMessageEx (const UNICODE *pStr, SIZE CurPos, extern BOOLEAN DrawSISMessageEx (const UNICODE *pStr, SIZE CurPos,