Removing hotspot abuse from lander reports as it causes desync with new hotspot handling; primitive batches have no advantages now anyway
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2034 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -40,46 +40,45 @@ extern FRAME SpaceJunkFrame;
|
|||||||
static void
|
static void
|
||||||
ClearReportArea (void)
|
ClearReportArea (void)
|
||||||
{
|
{
|
||||||
COUNT i;
|
COUNT x, y;
|
||||||
RECT r;
|
RECT r;
|
||||||
STAMP s;
|
STAMP s;
|
||||||
PRIMITIVE prim_row[MAX_CELL_COLS];
|
COORD startx;
|
||||||
|
|
||||||
if (optWhichFonts == OPT_PC)
|
if (optWhichFonts == OPT_PC)
|
||||||
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 21);
|
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 21);
|
||||||
else
|
else
|
||||||
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 18);
|
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 18);
|
||||||
GetFrameRect (s.frame, &r);
|
GetFrameRect (s.frame, &r);
|
||||||
s.origin.x = 1 + (r.extent.width >> 1) - 1;
|
|
||||||
s.origin.y = 1;
|
|
||||||
for (i = 0; i < NUM_CELL_COLS; ++i)
|
|
||||||
{
|
|
||||||
prim_row[i].Object.Stamp = s;
|
|
||||||
s.origin.x += r.extent.width + 1;
|
|
||||||
|
|
||||||
SetPrimNextLink (&prim_row[i], i + 1);
|
BatchGraphics ();
|
||||||
if (optWhichFonts == OPT_PC)
|
|
||||||
SetPrimType (&prim_row[i], STAMP_PRIM);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetPrimType (&prim_row[i], STAMPFILL_PRIM);
|
|
||||||
SetPrimColor (&prim_row[i], BUILD_COLOR (MAKE_RGB15 (0x00, 0x07, 0x00), 0x57));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
SetPrimNextLink (&prim_row[i - 1], END_OF_LIST);
|
|
||||||
|
|
||||||
SetContextBackGroundColor (BLACK_COLOR);
|
SetContextBackGroundColor (BLACK_COLOR);
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
SetContextClipping (FALSE);
|
SetContextClipping (FALSE);
|
||||||
for (i = 0; i < NUM_CELL_ROWS; ++i)
|
SetContextForeGroundColor (BUILD_COLOR (
|
||||||
|
MAKE_RGB15 (0x00, 0x07, 0x00), 0x57));
|
||||||
|
|
||||||
|
startx = 1 + (r.extent.width >> 1) - 1;
|
||||||
|
s.origin.y = 1;
|
||||||
|
for (y = 0; y < NUM_CELL_ROWS; ++y)
|
||||||
{
|
{
|
||||||
DrawBatch (prim_row, 0, 0);
|
s.origin.x = startx;
|
||||||
r.corner.y -= r.extent.height + 1;
|
for (x = 0; x < NUM_CELL_COLS; ++x)
|
||||||
SetFrameHot (s.frame, MAKE_HOT_SPOT (r.corner.x, r.corner.y));
|
{
|
||||||
|
if (optWhichFonts == OPT_PC)
|
||||||
|
DrawStamp (&s);
|
||||||
|
else
|
||||||
|
DrawFilledStamp (&s);
|
||||||
|
|
||||||
|
s.origin.x += r.extent.width + 1;
|
||||||
}
|
}
|
||||||
|
s.origin.y += r.extent.height + 1;
|
||||||
|
}
|
||||||
|
|
||||||
SetContextClipping (TRUE);
|
SetContextClipping (TRUE);
|
||||||
r.corner.y = 0;
|
|
||||||
SetFrameHot (s.frame, MAKE_HOT_SPOT (r.corner.x, r.corner.y));
|
UnbatchGraphics ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user