libfreerdp-gdi: fix RGB<->BGR color conversion

This commit is contained in:
Marc-André Moreau 2012-01-09 19:47:52 -05:00
parent c7cc745575
commit b9bac6ffbf
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ uint16 gdi_get_color_16bpp(HGDI_DC hdc, GDI_COLOR color)
uint8 r, g, b;
uint16 color16;
GetRGB32(r, g, b, color);
GetBGR32(r, g, b, color);
if (hdc->rgb555)
{

View File

@ -39,7 +39,7 @@ uint32 gdi_get_color_32bpp(HGDI_DC hdc, GDI_COLOR color)
uint8 a, r, g, b;
a = 0xFF;
GetRGB32(r, g, b, color);
GetBGR32(r, g, b, color);
if (hdc->invert)
{
@ -47,7 +47,7 @@ uint32 gdi_get_color_32bpp(HGDI_DC hdc, GDI_COLOR color)
}
else
{
color32 = ARGB32(a, b, g, r);
color32 = ARGB32(a, r, g, b);
}
return color32;