aboutsummaryrefslogtreecommitdiffstats
path: root/vnchextile.h
diff options
context:
space:
mode:
Diffstat (limited to 'vnchextile.h')
-rw-r--r--vnchextile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnchextile.h b/vnchextile.h
index f5b6fcb..6d60b24 100644
--- a/vnchextile.h
+++ b/vnchextile.h
@@ -72,7 +72,7 @@ static void CONCAT(send_hextile_tile_, NAME)(VncState *vs,
*last_bg = bg;
}
- if (!*has_fg || *last_fg != fg) {
+ if (n_colors < 3 && (!*has_fg || *last_fg != fg)) {
flags |= 0x04;
*has_fg = 1;
*last_fg = fg;