gl_draw.c: whitespace

draw.c: (both sw and sw32) fix Draw_nString to be similar to gl_draw.c
This commit is contained in:
Bill Currie 2002-01-10 20:19:22 +00:00
parent 140f806d40
commit 6132049bf4
3 changed files with 7 additions and 8 deletions

View file

@ -361,8 +361,7 @@ Draw_nString (int x, int y, const char *str, int count)
qfglBegin (GL_QUADS);
while (count-- && *str) {
if ((num = *str++) != 32) // Don't render spaces
{
if ((num = *str++) != 32) { // Don't render spaces
frow = (num >> 4) * CELL_SIZE;
fcol = (num & 15) * CELL_SIZE;

View file

@ -198,7 +198,7 @@ Draw_Init (void)
It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off.
*/
void
inline void
Draw_Character (int x, int y, unsigned int num)
{
byte *dest;
@ -265,9 +265,9 @@ Draw_String (int x, int y, const char *str)
void
Draw_nString (int x, int y, const char *str, int count)
{
int size;
for (size = 0; size < count; size++, x +=8) {
while (count-- && *str) {
Draw_Character (x, y, *str++);
x += 8;
}
}

View file

@ -327,9 +327,9 @@ Draw_String (int x, int y, const char *str)
void
Draw_nString (int x, int y, const char *str, int count)
{
int size;
for (size = 0; size < count; size++, x += 8) {
while (count-- && *str) {
Draw_Character (x, y, *str++);
x += 8;
}
}