Mini-map in hspace/qspace now has borders too (bug #307 part 4)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@959 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-05-11 23:19:04 +00:00
parent 9fca0e15c7
commit 4c0d125091
2 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ Changes towards version 0.3:
- Two dialogue spots where visit count could run away patched; fixes bug
#333, from Stas Sergeev
- EventHandler checks CurStarDescPtr before dereferencing it (bug #347)
- Oscilloscope now has borders (bug #307 part 4) -Mika
- Oscilloscope/mini-map now has borders (bug #307 part 4) -Mika
- Flashing rects are no longer constrained to even-numbered pixels on the
y axis; fixes bug #255, from Nic
- Fixed minor glitches in main window borders (bug #307 parts 1,2,3) -Mika
+34 -1
View File
@@ -1520,7 +1520,40 @@ SeedUniverse (void)
s.origin.y = RADAR_HEIGHT >> 1;
s.frame = blip_frame;
DrawStamp (&s);
{
// draws borders to mini-map
RECT r;
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xE, 0xE, 0xE), 0x00));
r.corner.x = 0;
r.corner.y = 0;
r.extent.width = RADAR_WIDTH - 1;
r.extent.height = 1;
DrawFilledRectangle (&r);
r.extent.width = 1;
r.extent.height = RADAR_HEIGHT - 1;
DrawFilledRectangle (&r);
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x6, 0x6, 0x6), 0x00));
r.corner.x = RADAR_WIDTH - 1;
r.corner.y = 1;
r.extent.height = RADAR_HEIGHT - 1;
DrawFilledRectangle (&r);
r.corner.x = 1;
r.corner.y = RADAR_HEIGHT - 1;
r.extent.width = RADAR_WIDTH - 2;
r.extent.height = 1;
DrawFilledRectangle (&r);
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x00));
r.corner.x = 0;
DrawPoint (&r.corner);
r.corner.x = RADAR_WIDTH - 1;
r.corner.y = 0;
DrawPoint (&r.corner);
}
UnbatchGraphics ();
SetContext (StatusContext);