This commit is contained in:
Kovid Goyal
2021-01-28 10:15:43 +05:30
parent d76e757d53
commit c0e336a971
3 changed files with 26 additions and 22 deletions

View File

@@ -144,8 +144,9 @@ static inline void parse_graphics_code(Screen *screen,
case action: {
g.action = screen->parser_buf[pos++] & 0xff;
if (g.action != 'p' && g.action != 't' && g.action != 'q' &&
g.action != 'f' && g.action != 'T' && g.action != 'd') {
if (g.action != 'q' && g.action != 'd' && g.action != 'p' &&
g.action != 't' && g.action != 'T' && g.action != 'f' &&
g.action != 'a') {
REPORT_ERROR("Malformed GraphicsCommand control block, unknown flag "
"value for action: 0x%x",
g.action);
@@ -155,16 +156,16 @@ static inline void parse_graphics_code(Screen *screen,
case delete_action: {
g.delete_action = screen->parser_buf[pos++] & 0xff;
if (g.delete_action != 'x' && g.delete_action != 'z' &&
g.delete_action != 'X' && g.delete_action != 'i' &&
g.delete_action != 'n' && g.delete_action != 'a' &&
g.delete_action != 'F' && g.delete_action != 'I' &&
g.delete_action != 'f' && g.delete_action != 'Q' &&
g.delete_action != 'y' && g.delete_action != 'C' &&
g.delete_action != 'q' && g.delete_action != 'Y' &&
g.delete_action != 'p' && g.delete_action != 'Z' &&
g.delete_action != 'A' && g.delete_action != 'P' &&
g.delete_action != 'N' && g.delete_action != 'c') {
if (g.delete_action != 'F' && g.delete_action != 'n' &&
g.delete_action != 'x' && g.delete_action != 'I' &&
g.delete_action != 'p' && g.delete_action != 'i' &&
g.delete_action != 'C' && g.delete_action != 'Q' &&
g.delete_action != 'A' && g.delete_action != 'z' &&
g.delete_action != 'y' && g.delete_action != 'c' &&
g.delete_action != 'Z' && g.delete_action != 'N' &&
g.delete_action != 'X' && g.delete_action != 'q' &&
g.delete_action != 'P' && g.delete_action != 'f' &&
g.delete_action != 'Y' && g.delete_action != 'a') {
REPORT_ERROR("Malformed GraphicsCommand control block, unknown flag "
"value for delete_action: 0x%x",
g.delete_action);