libfreerdp-gdi: fix opaque rect color with --gdi sw
This commit is contained in:
parent
d454037298
commit
bdc181ecbe
@ -168,7 +168,7 @@ boolean df_post_connect(freerdp* instance)
|
||||
context = ((dfContext*) instance->context);
|
||||
dfi = context->dfi;
|
||||
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRBUF_16BPP | CLRBUF_32BPP, NULL);
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRCONV_INVERT | CLRBUF_16BPP | CLRBUF_32BPP, NULL);
|
||||
gdi = instance->context->gdi;
|
||||
|
||||
dfi->err = DirectFBCreate(&(dfi->dfb));
|
||||
|
@ -226,7 +226,7 @@ boolean wf_post_connect(freerdp* instance)
|
||||
|
||||
if (wfi->sw_gdi)
|
||||
{
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRBUF_32BPP, NULL);
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRCONV_INVERT | CLRBUF_32BPP, NULL);
|
||||
gdi = instance->context->gdi;
|
||||
wfi->hdc = gdi->primary->hdc;
|
||||
wfi->primary = wf_image_new(wfi, width, height, wfi->dstBpp, gdi->primary_buffer);
|
||||
|
@ -587,7 +587,7 @@ boolean xf_post_connect(freerdp* instance)
|
||||
rdpGdi* gdi;
|
||||
uint32 flags;
|
||||
|
||||
flags = CLRCONV_ALPHA;
|
||||
flags = CLRCONV_ALPHA | CLRCONV_INVERT;
|
||||
|
||||
if (xfi->bpp > 16)
|
||||
flags |= CLRBUF_32BPP;
|
||||
|
@ -182,7 +182,7 @@ boolean tf_post_connect(freerdp* instance)
|
||||
{
|
||||
rdpGdi* gdi;
|
||||
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRBUF_16BPP | CLRBUF_32BPP, NULL);
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRCONV_INVERT | CLRBUF_16BPP | CLRBUF_32BPP, NULL);
|
||||
gdi = instance->context->gdi;
|
||||
|
||||
instance->update->BeginPaint = tf_begin_paint;
|
||||
|
Loading…
Reference in New Issue
Block a user