wfreerdp: fix RemoteFX

This commit is contained in:
Marc-André Moreau 2012-02-08 21:44:22 -05:00
parent 66ebfb0e9f
commit 2bde041788
2 changed files with 3 additions and 3 deletions

View File

@ -45,12 +45,12 @@ HBITMAP wf_create_dib(wfInfo* wfi, int width, int height, int bpp, uint8* data,
bmi.bmiHeader.biWidth = width;
bmi.bmiHeader.biHeight = negHeight;
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = 24;
bmi.bmiHeader.biBitCount = bpp;
bmi.bmiHeader.biCompression = BI_RGB;
bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**) &cdata, NULL, 0);
if (data != NULL)
freerdp_image_convert(data, cdata, width, height, bpp, 24, wfi->clrconv);
freerdp_image_convert(data, cdata, width, height, bpp, bpp, wfi->clrconv);
if (pdata != NULL)
*pdata = cdata;

View File

@ -306,7 +306,7 @@ boolean wf_post_connect(freerdp* instance)
if (settings->rfx_codec)
{
wfi->tile = wf_bitmap_new(wfi, 64, 64, 24, NULL);
wfi->tile = wf_bitmap_new(wfi, 64, 64, 32, NULL);
wfi->rfx_context = rfx_context_new();
rfx_context_set_cpu_opt(wfi->rfx_context, wfi_detect_cpu());
}