From 92b799bdad6b1361976ef3ab84acd0bf360b1b22 Mon Sep 17 00:00:00 2001 From: Matt Hortman Date: Mon, 5 Mar 2012 10:13:08 -0500 Subject: [PATCH] fixed color mapping in glyph_begindraw --- protocols/rdp/src/rdp_glyph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/rdp/src/rdp_glyph.c b/protocols/rdp/src/rdp_glyph.c index db7ba546..47dfa16b 100644 --- a/protocols/rdp/src/rdp_glyph.c +++ b/protocols/rdp/src/rdp_glyph.c @@ -151,13 +151,13 @@ void guac_rdp_glyph_begindraw(rdpContext* context, context->instance->settings->color_depth, 32, ((rdp_freerdp_context*) context)->clrconv); - guac_client_data->foreground.red = fgcolor & 0x0000FF; + guac_client_data->foreground.blue = fgcolor & 0x0000FF; guac_client_data->foreground.green = (fgcolor & 0x00FF00) >> 8; - guac_client_data->foreground.blue = (fgcolor & 0xFF0000) >> 16; + guac_client_data->foreground.red = (fgcolor & 0xFF0000) >> 16; - guac_client_data->background.red = bgcolor & 0x0000FF; + guac_client_data->background.blue = bgcolor & 0x0000FF; guac_client_data->background.green = (bgcolor & 0x00FF00) >> 8; - guac_client_data->background.blue = (bgcolor & 0xFF0000) >> 16; + guac_client_data->background.red = (bgcolor & 0xFF0000) >> 16; /* paint background on destination */ guac_protocol_send_rect(client->socket,