From f01cc24267f81dedff15d7e0d1fa903e8b1db78a Mon Sep 17 00:00:00 2001 From: Chris Ison Date: Wed, 9 Jan 2002 23:51:32 +0000 Subject: [PATCH] minor bug fixes to Draw_nString changes and Draw_Character tidy up, ie: typos and miss understanding --- nq/source/console.c | 10 +++++----- qw/source/console.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/nq/source/console.c b/nq/source/console.c index db1dd9d3c..968a3a91e 100644 --- a/nq/source/console.c +++ b/nq/source/console.c @@ -373,7 +373,7 @@ Con_DrawInput (void) // draw it y = con_vislines - 22; - Draw_nString (3, y, text, con_linewidth); + Draw_nString (8, y, text, con_linewidth); } /* @@ -403,7 +403,7 @@ Con_DrawNotify (void) clearnotify = 0; scr_copytop = 1; - Draw_nString (3, v, text, con_linewidth); + Draw_nString (8, v, text, con_linewidth); v += 8; } @@ -424,7 +424,7 @@ Con_DrawNotify (void) if (chat_bufferlen > (vid.width >> 3) - (skip + 1)) s += chat_bufferlen - ((vid.width >> 3) - (skip + 1)); x = 0; - Draw_String (skip >> 3, v, s); + Draw_String (skip << 3, v, s); Draw_Character ((strlen(s) + skip) << 3, v, 10 + ((int) (realtime * con_cursorspeed) & 1)); v += 8; @@ -478,7 +478,7 @@ Con_DrawConsole (int lines) text = con->text + (row % con_totallines) * con_linewidth; - Draw_nString (3, y, text, con_linewidth); + Draw_nString (8, y, text, con_linewidth); } // draw the input prompt, user text, and cursor if desired @@ -527,7 +527,7 @@ Con_DrawDownload (int lines) " %02d%%", cls.downloadpercent); // draw it y = lines - 22 + 8; - Draw_nString (3, y, dlbar, strlen (dlbar)); + Draw_nString (8, y, dlbar, strlen (dlbar)); } /* diff --git a/qw/source/console.c b/qw/source/console.c index daf11caf4..3125bea6e 100644 --- a/qw/source/console.c +++ b/qw/source/console.c @@ -419,7 +419,7 @@ Con_DrawInput (void) // draw it y = con_vislines - 22; - Draw_nString (3, y, text, con_linewidth); + Draw_nString (8, y, text, con_linewidth); } /* @@ -449,7 +449,7 @@ Con_DrawNotify (void) clearnotify = 0; scr_copytop = 1; - Draw_nString (3, v, text, con_linewidth); + Draw_nString (8, v, text, con_linewidth); v += 8; } @@ -459,7 +459,7 @@ Con_DrawNotify (void) if (chat_team) { Draw_String (8, v, "say_team:"); - skip = 11; + skip = 10; } else { Draw_String (8, v, "say:"); skip = 5; @@ -469,7 +469,7 @@ Con_DrawNotify (void) if (chat_bufferlen > (vid.width >> 3) - (skip + 1)) s += chat_bufferlen - ((vid.width >> 3) - (skip + 1)); x = 0; - Draw_String (skip >> 3, v, s); + Draw_String (skip << 3, v, s); Draw_Character ((strlen(s) + skip) << 3, v, 10 + ((int) (realtime * con_cursorspeed) & 1)); v += 8; @@ -523,7 +523,7 @@ Con_DrawConsole (int lines) text = con->text + (row % con_totallines) * con_linewidth; - Draw_nString(3, y, text, con_linewidth); + Draw_nString(8, y, text, con_linewidth); } // draw the input prompt, user text, and cursor if desired @@ -572,7 +572,7 @@ Con_DrawDownload (int lines) " %02d%%", cls.downloadpercent); // draw it y = lines - 22 + 8; - Draw_nString (3, y, dlbar, strlen (dlbar)); + Draw_nString (8, y, dlbar, strlen (dlbar)); } /*