libfreerdp-gdi: fix alpha transparency for no codec bitmaps

This commit is contained in:
Marc-André Moreau 2011-09-21 10:44:16 -04:00
parent 5207be87f6
commit 42fb9f84e8

View File

@ -926,7 +926,7 @@ void gdi_surface_bits(rdpUpdate* update, SURFACE_BITS_COMMAND* surface_bits_comm
gdi->image->bitmap->data = (uint8*) xrealloc(gdi->image->bitmap->data,
gdi->image->bitmap->width * gdi->image->bitmap->height * 4);
if (surface_bits_command->bpp != 32)
if ((surface_bits_command->bpp != 32) || (gdi->clrconv->alpha == True))
{
freerdp_image_convert(surface_bits_command->bitmapData, gdi->image->bitmap->data,
gdi->image->bitmap->width, gdi->image->bitmap->height,