mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
When using software gdi (/gdi:sw) the rdp update PDU callback gdi_palette_update() is used which writes the new colors to the rdpContext's gdi->palette buffer. The X11 functions however access xfc->palette which gets only updated by xf_gdi_palette_update() which is the callback if /gdi:hw is used. This commit changes xfc->palette to a pointer which points to xfc's private buffer with /gdi:hw or to the gdi->palette if software gdi is used.