mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Ensure background color clearing works
Even with 0 for the character, colors should get into the buffer.
This commit is contained in:
parent
3a28d84c3f
commit
f329ca83b6
1 changed files with 4 additions and 4 deletions
|
@ -91,6 +91,9 @@
|
||||||
int *dst = buffer;
|
int *dst = buffer;
|
||||||
int *end = buffer + size.width * size.height;
|
int *end = buffer + size.width * size.height;
|
||||||
|
|
||||||
|
if (ch && !(ch & 0xff)) {
|
||||||
|
ch |= ' ';
|
||||||
|
}
|
||||||
while (dst < end) {
|
while (dst < end) {
|
||||||
*dst++ = ch;
|
*dst++ = ch;
|
||||||
}
|
}
|
||||||
|
@ -129,10 +132,7 @@
|
||||||
cursor.y++;
|
cursor.y++;
|
||||||
} else if (ch == '\r') {
|
} else if (ch == '\r') {
|
||||||
cursor.x = 0;
|
cursor.x = 0;
|
||||||
} else if (ch & 0xff) {
|
} else {
|
||||||
if ((ch & 0xff) < 32) {
|
|
||||||
ch = (ch & ~0xff) | 32;
|
|
||||||
}
|
|
||||||
if (!(ch & ~0xff)) {
|
if (!(ch & ~0xff)) {
|
||||||
ch |= background & ~0xff;
|
ch |= background & ~0xff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue