From 334d6cb08befd54f11f748403ed91dbdca3c37e1 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 22 May 2013 03:26:51 -0700 Subject: [PATCH] Fix background filling algorithm. --- protocols/ssh/src/display.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/protocols/ssh/src/display.c b/protocols/ssh/src/display.c index 6e9d2e8a..11d98e03 100644 --- a/protocols/ssh/src/display.c +++ b/protocols/ssh/src/display.c @@ -779,10 +779,10 @@ void __guac_terminal_display_flush_clear(guac_terminal_display* display) { for (rect_col=col; rect_colwidth; rect_col++) { int joining_color; - if (rect_current->character.attributes.reverse) - joining_color = current->character.attributes.foreground; + if (rect_current->character.attributes.reverse != rect_current->character.attributes.cursor) + joining_color = rect_current->character.attributes.foreground; else - joining_color = current->character.attributes.background; + joining_color = rect_current->character.attributes.background; /* If not identical operation, stop */ if (rect_current->type != GUAC_CHAR_SET @@ -825,9 +825,9 @@ void __guac_terminal_display_flush_clear(guac_terminal_display* display) { int joining_color; if (rect_current->character.attributes.reverse != rect_current->character.attributes.cursor) - joining_color = current->character.attributes.foreground; + joining_color = rect_current->character.attributes.foreground; else - joining_color = current->character.attributes.background; + joining_color = rect_current->character.attributes.background; /* Mark clear operations as NOP */ if (rect_current->type == GUAC_CHAR_SET