mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
140f806d40
commit
6132049bf4
3 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue