Lander report messages now use the entire panel (bug #36), from

chmmravatar


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1137 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-08-28 22:43:00 +00:00
parent d9943b1689
commit 8da2644287
21 changed files with 183 additions and 578 deletions
+6 -5
View File
@@ -21,8 +21,9 @@
#include "lander.h"
#include "options.h"
#define NUM_CELL_COLS 34
#define NUM_CELL_ROWS 11
#define NUM_CELL_COLS MAP_WIDTH / 6
#define NUM_CELL_ROWS MAP_HEIGHT / 6
#define MAX_CELL_COLS 40
extern FRAME SpaceJunkFrame;
@@ -32,14 +33,14 @@ ClearReportArea (void)
COUNT i;
RECT r;
STAMP s;
PRIMITIVE prim_row[NUM_CELL_COLS];
PRIMITIVE prim_row[MAX_CELL_COLS];
if (optWhichFonts == OPT_PC)
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 21);
else
s.frame = SetAbsFrameIndex (SpaceJunkFrame, 18);
GetFrameRect (s.frame, &r);
s.origin.x = 1 + (r.extent.width >> 1);
s.origin.x = 1 + (r.extent.width >> 1) - 1;
s.origin.y = 1;
for (i = 0; i < NUM_CELL_COLS; ++i)
{
@@ -112,7 +113,7 @@ MakeReport (SOUND ReadOutSounds, UNICODE *pStr, COUNT StrLen)
StrLen += end_page_len;
}
t.baseline.x = 1 + (r.extent.width >> 1)
+ (col_cells * (r.extent.width + 1));
+ (col_cells * (r.extent.width + 1)) - 1;
do
{
COUNT word_chars;