Re: [PATCH 5/5] wined3d: Move get_dc palette updates to ddraw.
12 May
2014
12 May
'14
2:44 p.m.
On 12 May 2014 15:12, Stefan Dösinger <stefan(a)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.
4235
Age (days ago)
4235
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet