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:
@@ -1476,7 +1476,7 @@ SetFlashRect (PRECT pRect, FRAME f)
|
||||
old_f = flash_frame;
|
||||
flash_rect1 = flash_rect;
|
||||
|
||||
if (pRect != (PRECT)~0L)
|
||||
if (pRect != SFR_MENU_3DO && pRect != SFR_MENU_ANY)
|
||||
{
|
||||
GetContextClipRect (&clip_r);
|
||||
OldContext = SetContext (ScreenContext);
|
||||
@@ -1484,7 +1484,7 @@ SetFlashRect (PRECT pRect, FRAME f)
|
||||
else
|
||||
{
|
||||
//Don't flash when using the PC menu
|
||||
if (optWhichMenu == OPT_PC)
|
||||
if (optWhichMenu == OPT_PC && pRect != SFR_MENU_ANY)
|
||||
{
|
||||
OldContext = SetContext (ScreenContext);
|
||||
pRect = 0;
|
||||
|
||||
@@ -252,6 +252,8 @@ extern void InitSISContexts (void);
|
||||
extern void DrawSISFrame (void);
|
||||
extern void ClearSISRect (BYTE ClearFlags);
|
||||
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 DrawSISTitle (UNICODE *pStr);
|
||||
extern BOOLEAN DrawSISMessageEx (const UNICODE *pStr, SIZE CurPos,
|
||||
|
||||
Reference in New Issue
Block a user