mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[screen] Do not check twice for is_node
This commit is contained in:
parent
9e39ef5d1a
commit
aff460d7a9
@ -1115,12 +1115,10 @@ get_color88_from_node(struct screen_char *ch)
|
|||||||
static struct screen_char *
|
static struct screen_char *
|
||||||
get_mono_from_node(struct screen_char *ch)
|
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) {
|
if (node_number < 1024) {
|
||||||
return get_bfu_mono_node(node_number);
|
return get_bfu_mono_node(node_number);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ch;
|
return ch;
|
||||||
@ -1129,12 +1127,10 @@ get_mono_from_node(struct screen_char *ch)
|
|||||||
static struct screen_char *
|
static struct screen_char *
|
||||||
get_color16_from_node(struct screen_char *ch)
|
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) {
|
if (node_number < 1024) {
|
||||||
return get_bfu_color16_node(node_number);
|
return get_bfu_color16_node(node_number);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ch;
|
return ch;
|
||||||
|
Loading…
Reference in New Issue
Block a user