On 12 May 2014 15:12, Stefan Dösinger stefan@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.