[qwaq] Treat 0 as transparent character

This commit is contained in:
Bill Currie 2020-03-19 19:53:32 +09:00
parent 14fbdc7df9
commit f027a42e72
2 changed files with 4 additions and 5 deletions

View file

@ -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);

View file

@ -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;
}