mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-04 15:23:32 +08:00
xfreerdp: fix color conversion in 16-bit X11 environment
This commit is contained in:
parent
7ee5089a17
commit
8f87f3e817
@ -440,7 +440,16 @@ boolean xf_post_connect(freerdp* instance)
|
||||
if (xfi->sw_gdi)
|
||||
{
|
||||
GDI* gdi;
|
||||
gdi_init(instance, CLRCONV_ALPHA | CLRBUF_32BPP);
|
||||
uint32 flags;
|
||||
|
||||
flags = CLRCONV_ALPHA;
|
||||
|
||||
if (xfi->bpp > 16)
|
||||
flags |= CLRBUF_32BPP;
|
||||
else
|
||||
flags |= CLRBUF_16BPP;
|
||||
|
||||
gdi_init(instance, flags);
|
||||
gdi = GET_GDI(instance->update);
|
||||
xfi->primary_buffer = gdi->primary_buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user