From aff460d7a94b806f0cb6f1e47d3fd38f1f72748e Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 20 Mar 2022 16:10:17 +0100 Subject: [PATCH] [screen] Do not check twice for is_node --- src/terminal/screen.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/terminal/screen.c b/src/terminal/screen.c index 1b25eec2..6ee25af4 100644 --- a/src/terminal/screen.c +++ b/src/terminal/screen.c @@ -1115,12 +1115,10 @@ get_color88_from_node(struct screen_char *ch) static struct screen_char * get_mono_from_node(struct screen_char *ch) { - if (ch->is_node) { - unsigned int node_number = ch->c.node_number; + unsigned int node_number = ch->c.node_number; - if (node_number < 1024) { - return get_bfu_mono_node(node_number); - } + if (node_number < 1024) { + return get_bfu_mono_node(node_number); } return ch; @@ -1129,12 +1127,10 @@ get_mono_from_node(struct screen_char *ch) static struct screen_char * get_color16_from_node(struct screen_char *ch) { - if (ch->is_node) { - unsigned int node_number = ch->c.node_number; + unsigned int node_number = ch->c.node_number; - if (node_number < 1024) { - return get_bfu_color16_node(node_number); - } + if (node_number < 1024) { + return get_bfu_color16_node(node_number); } return ch;