From 7211513001e7b4747bb58b17d79f673023ee92ea Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 5 Apr 2012 23:03:19 -0700 Subject: [PATCH] Fix color order regression. --- 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 3e939f64..603a1048 100644 --- a/protocols/rdp/src/rdp_glyph.c +++ b/protocols/rdp/src/rdp_glyph.c @@ -157,9 +157,9 @@ void guac_rdp_glyph_begindraw(rdpContext* context, x, y, width, height); cairo_set_source_rgb(guac_client_data->glyph_cairo, - ( bgcolor & 0x0000FF ) / 255.0, + ((bgcolor & 0xFF0000) >> 16) / 255.0, ((bgcolor & 0x00FF00) >> 8 ) / 255.0, - ((bgcolor & 0xFF0000) >> 16) / 255.0); + ( bgcolor & 0x0000FF ) / 255.0); cairo_fill(guac_client_data->glyph_cairo); @@ -190,9 +190,9 @@ void guac_rdp_glyph_begindraw(rdpContext* context, /* Prepare for glyph drawing */ cairo_set_source_rgb(guac_client_data->glyph_cairo, - ( fgcolor & 0x0000FF ) / 255.0, + ((fgcolor & 0xFF0000) >> 16) / 255.0, ((fgcolor & 0x00FF00) >> 8 ) / 255.0, - ((fgcolor & 0xFF0000) >> 16) / 255.0); + ( fgcolor & 0x0000FF ) / 255.0); }