[PATCH 5/5] wined3d: Move get_dc palette updates to ddraw.

Henri Verbeet hverbeet at gmail.com
Mon May 12 09:44:46 CDT 2014


On 12 May 2014 15:12, Stefan Dösinger <stefan at codeweavers.com> wrote:
> Note that d3d9 does not support get_dc on D3DFMT_P8. d3d8 and d3d10+ do
> not support get_dc at all.
That's not strictly true, with d3d10+ you can still get GetDC() /
ReleaseDC() through IDXGISurface1. It doesn't give you P8 though.

> +        if (palette)
> +        {
> +            const RGBQUAD *color_table = wined3d_palette_get_rgbquads(palette->wineD3DPalette);
> +            SetDIBColorTable(*hdc, 0, 256, color_table);
> +        }
...
> +const RGBQUAD * CDECL wined3d_palette_get_rgbquads(const struct wined3d_palette *palette)
> +{
> +    return palette->colors;
> +}
That's a pretty terrible interface, it shouldn't be very hard to come
up with something better.



More information about the wine-devel mailing list