Ran everything through astyle again and disabled hightile when drawing console text because the HRP font looks like shit when scaled down to that size

git-svn-id: https://svn.eduke32.com/eduke32@900 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-07-25 01:09:39 +00:00
parent fe97d1abb1
commit cb1b36fb64
4 changed files with 115 additions and 109 deletions

View file

@ -5324,12 +5324,12 @@ static int parse(void)
break; break;
} }
case CON_GETPNAME: case CON_GETPNAME:
case CON_QSTRCAT: case CON_QSTRCAT:
case CON_QSTRCPY: case CON_QSTRCPY:
case CON_QGETSYSSTR: case CON_QGETSYSSTR:
case CON_CHANGESPRITESTAT: case CON_CHANGESPRITESTAT:
case CON_CHANGESPRITESECT: case CON_CHANGESPRITESECT:
insptr++; insptr++;
{ {
int i = GetGameVarID(*insptr++, g_i, g_p), j; int i = GetGameVarID(*insptr++, g_i, g_p), j;

View file

@ -6,12 +6,14 @@
void GAME_drawosdchar(int x, int y, char ch, int shade, int pal) void GAME_drawosdchar(int x, int y, char ch, int shade, int pal)
{ {
short ac; short ac;
int ht = usehightile;
if (ch == 32) return; if (ch == 32) return;
ac = ch-'!'+STARTALPHANUM; ac = ch-'!'+STARTALPHANUM;
if (ac < STARTALPHANUM || ac > ENDALPHANUM) return; if (ac < STARTALPHANUM || ac > ENDALPHANUM) return;
usehightile = 0;
rotatesprite(((x<<3)+x)<<16, (y<<3)<<16, 65536l, 0, ac, shade, pal, 8|16, 0, 0, xdim-1, ydim-1); rotatesprite(((x<<3)+x)<<16, (y<<3)<<16, 65536l, 0, ac, shade, pal, 8|16, 0, 0, xdim-1, ydim-1);
usehightile = ht;
} }
void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal) void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
@ -19,6 +21,9 @@ void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
short ac; short ac;
char *ptr = OSD_GetTextPtr(); char *ptr = OSD_GetTextPtr();
char *fmt = OSD_GetFmtPtr(); char *fmt = OSD_GetFmtPtr();
int ht = usehightile;
usehightile = 0;
for (x = (x<<3)+x; len>0; len--, ch++, x++) for (x = (x<<3)+x; len>0; len--, ch++, x++)
{ {
@ -28,7 +33,7 @@ void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
continue; continue;
} }
ac = *ch-'!'+STARTALPHANUM; ac = *ch-'!'+STARTALPHANUM;
if (ac < STARTALPHANUM || ac > ENDALPHANUM) return; if (ac < STARTALPHANUM || ac > ENDALPHANUM) { usehightile = ht; return; }
// use the format byte if the text falls within the bounds of the console buffer // use the format byte if the text falls within the bounds of the console buffer
if (ch > ptr && ch < (ptr + TEXTSIZE)) if (ch > ptr && ch < (ptr + TEXTSIZE))
@ -41,6 +46,7 @@ void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
pal, 8|16, 0, 0, xdim-1, ydim-1); pal, 8|16, 0, 0, xdim-1, ydim-1);
x += OSDCHAR_WIDTH; x += OSDCHAR_WIDTH;
} }
usehightile = ht;
} }
void GAME_drawosdcursor(int x, int y, int type, int lastkeypress) void GAME_drawosdcursor(int x, int y, int type, int lastkeypress)