mirror of https://github.com/FreeRDP/FreeRDP
wfreerdp: fix RemoteFX
This commit is contained in:
parent
66ebfb0e9f
commit
2bde041788
|
@ -45,12 +45,12 @@ HBITMAP wf_create_dib(wfInfo* wfi, int width, int height, int bpp, uint8* data,
|
||||||
bmi.bmiHeader.biWidth = width;
|
bmi.bmiHeader.biWidth = width;
|
||||||
bmi.bmiHeader.biHeight = negHeight;
|
bmi.bmiHeader.biHeight = negHeight;
|
||||||
bmi.bmiHeader.biPlanes = 1;
|
bmi.bmiHeader.biPlanes = 1;
|
||||||
bmi.bmiHeader.biBitCount = 24;
|
bmi.bmiHeader.biBitCount = bpp;
|
||||||
bmi.bmiHeader.biCompression = BI_RGB;
|
bmi.bmiHeader.biCompression = BI_RGB;
|
||||||
bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**) &cdata, NULL, 0);
|
bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**) &cdata, NULL, 0);
|
||||||
|
|
||||||
if (data != NULL)
|
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)
|
if (pdata != NULL)
|
||||||
*pdata = cdata;
|
*pdata = cdata;
|
||||||
|
|
|
@ -306,7 +306,7 @@ boolean wf_post_connect(freerdp* instance)
|
||||||
|
|
||||||
if (settings->rfx_codec)
|
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();
|
wfi->rfx_context = rfx_context_new();
|
||||||
rfx_context_set_cpu_opt(wfi->rfx_context, wfi_detect_cpu());
|
rfx_context_set_cpu_opt(wfi->rfx_context, wfi_detect_cpu());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue