libfreerdp-gdi: fix opaque rect color with --gdi sw

This commit is contained in:
Marc-André Moreau 2011-12-13 11:36:05 -05:00
parent d454037298
commit bdc181ecbe
4 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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);

View File

@ -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;

View File

@ -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;