flash menu when purchasing a ship even when menu=pc

fix menu border when menu=pc


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@632 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-02-02 05:05:31 +00:00
parent 7fc8986bbb
commit 59fa71af03
+14 -1
View File
@@ -138,6 +138,7 @@ DrawRaceStrings (BYTE NewRaceItem)
r.extent.width = RADAR_WIDTH + 2; r.extent.width = RADAR_WIDTH + 2;
r.extent.height = 11; r.extent.height = 11;
BatchGraphics (); BatchGraphics ();
ClearSISRect (CLEAR_SIS_RADAR);
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08)); SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
DrawFilledRectangle (&r); DrawFilledRectangle (&r);
r.corner = s.origin; r.corner = s.origin;
@@ -179,7 +180,17 @@ DrawRaceStrings (BYTE NewRaceItem)
} }
UnbatchGraphics (); UnbatchGraphics ();
SetFlashRect ((PRECT)~0L, (FRAME)0); // Flash the ship purchase menu even when optMenu == OPT_PC
{
RECT flash_r;
GetContextClipRect (&flash_r);
flash_r.corner.x = RADAR_X - flash_r.corner.x;
flash_r.corner.y = RADAR_Y - flash_r.corner.y;
flash_r.extent.width = RADAR_WIDTH;
flash_r.extent.height = RADAR_HEIGHT;
SetFlashRect (&flash_r, (FRAME)0);
}
//SetFlashRect ((PRECT)~0L, (FRAME)0);
SetContext (OldContext); SetContext (OldContext);
ClearSemaphore (GraphicsSem); ClearSemaphore (GraphicsSem);
} }
@@ -655,6 +666,8 @@ DoModifyShips (INPUT_STATE InputState, PMENU_STATE pMS)
&GLOBAL (built_ship_q), 1)) &GLOBAL (built_ship_q), 1))
{ {
ShowCombatShip ((COUNT)pMS->CurState, (SHIP_FRAGMENTPTR)0); ShowCombatShip ((COUNT)pMS->CurState, (SHIP_FRAGMENTPTR)0);
//Reset flash rectangle
SetFlashRect ((PRECT)~0L, (FRAME)0);
DrawMenuStateStrings (PM_CREW, SHIPYARD_CREW); DrawMenuStateStrings (PM_CREW, SHIPYARD_CREW);
SetSemaphore (GraphicsSem); SetSemaphore (GraphicsSem);