revert erroneously commited GraphicsSem move in scan.c -PBlue
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@483 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -847,7 +847,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
|
|
||||||
PressState = AnyButtonPress (TRUE);
|
PressState = AnyButtonPress (TRUE);
|
||||||
WaitTime = (ONE_SECOND << 1) / MAP_HEIGHT;
|
WaitTime = (ONE_SECOND << 1) / MAP_HEIGHT;
|
||||||
SetSemaphore (GraphicsSem);
|
// SetSemaphore (GraphicsSem);
|
||||||
TimeIn = GetTimeCounter ();
|
TimeIn = GetTimeCounter ();
|
||||||
for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++)
|
for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++)
|
||||||
{
|
{
|
||||||
@@ -859,7 +859,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
}
|
}
|
||||||
if (ButtonState)
|
if (ButtonState)
|
||||||
i = -i;
|
i = -i;
|
||||||
// SetSemaphore (GraphicsSem);
|
SetSemaphore (GraphicsSem);
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
DrawPlanet (0, 0, i, rgb);
|
DrawPlanet (0, 0, i, rgb);
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
@@ -867,12 +867,12 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
if (pMS->delta_item)
|
if (pMS->delta_item)
|
||||||
DrawScannedStuff (i, min_scan);
|
DrawScannedStuff (i, min_scan);
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
// ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
// FlushGraphics ();
|
// FlushGraphics ();
|
||||||
SleepThreadUntil (TimeIn + WaitTime);
|
SleepThreadUntil (TimeIn + WaitTime);
|
||||||
TimeIn = GetTimeCounter ();
|
TimeIn = GetTimeCounter ();
|
||||||
}
|
}
|
||||||
ClearSemaphore (GraphicsSem);
|
// ClearSemaphore (GraphicsSem);
|
||||||
pSolarSysState->Tint_rgb = 0;
|
pSolarSysState->Tint_rgb = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user