GUAC-852: Use freerdp_convert_gdi_order_color() for color conversion.
This commit is contained in:
parent
e2c28d9240
commit
fc6758ffdf
@ -135,9 +135,9 @@ void guac_rdp_glyph_begindraw(rdpContext* context,
|
|||||||
if (width != 0 && height != 0) {
|
if (width != 0 && height != 0) {
|
||||||
|
|
||||||
/* Convert background color */
|
/* Convert background color */
|
||||||
bgcolor = freerdp_color_convert_var(bgcolor,
|
bgcolor = freerdp_convert_gdi_order_color(bgcolor,
|
||||||
guac_rdp_get_depth(context->instance), 32,
|
guac_rdp_get_depth(context->instance),
|
||||||
((rdp_freerdp_context*) context)->clrconv);
|
PIXEL_FORMAT_ARGB32, NULL);
|
||||||
|
|
||||||
guac_common_surface_rect(guac_client_data->current_surface, x, y, width, height,
|
guac_common_surface_rect(guac_client_data->current_surface, x, y, width, height,
|
||||||
(bgcolor & 0xFF0000) >> 16,
|
(bgcolor & 0xFF0000) >> 16,
|
||||||
@ -147,8 +147,10 @@ void guac_rdp_glyph_begindraw(rdpContext* context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Convert foreground color */
|
/* Convert foreground color */
|
||||||
guac_client_data->glyph_color = freerdp_color_convert_var(fgcolor,
|
guac_client_data->glyph_color =
|
||||||
guac_rdp_get_depth(context->instance), 32, ((rdp_freerdp_context*) context)->clrconv);
|
freerdp_convert_gdi_order_color(fgcolor,
|
||||||
|
guac_rdp_get_depth(context->instance),
|
||||||
|
PIXEL_FORMAT_ARGB32, NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user