mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Treat 0 as transparent character
This commit is contained in:
parent
14fbdc7df9
commit
f027a42e72
2 changed files with 4 additions and 5 deletions
|
@ -649,7 +649,9 @@ cmd_mvwblit_line (qwaq_resources_t *res)
|
|||
getyx (window->win, save_y, save_x);
|
||||
for (int i = 0; i < len; i++) {
|
||||
Sys_Printf(" %d", chs[i]);
|
||||
mvwaddch (window->win, y, x + i, chs[i]);
|
||||
if (chs[i] & 0xff) {
|
||||
mvwaddch (window->win, y, x + i, chs[i]);
|
||||
}
|
||||
}
|
||||
Sys_Printf("\n");
|
||||
wmove (window->win, save_y, save_x);
|
||||
|
|
|
@ -82,9 +82,6 @@
|
|||
|
||||
- (void) bkgd: (int) ch
|
||||
{
|
||||
if ((ch & 0xff) < 32) {
|
||||
ch = (ch & ~0xff) | 32;
|
||||
}
|
||||
background = ch;
|
||||
}
|
||||
|
||||
|
@ -132,7 +129,7 @@
|
|||
cursor.y++;
|
||||
} else if (ch == '\r') {
|
||||
cursor.x = 0;
|
||||
} else {
|
||||
} else if (ch & 0xff) {
|
||||
if ((ch & 0xff) < 32) {
|
||||
ch = (ch & ~0xff) | 32;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue