[PATCH 1/5] ddraw: Only ddraw7 disallows SetPalette on sublevels.

Stefan Dösinger stefandoesinger at gmail.com
Thu Apr 24 06:33:22 CDT 2014


Good point, I'll extend the test


2014-04-24 13:25 GMT+02:00 Henri Verbeet <hverbeet at gmail.com>:

> On 24 April 2014 12:10, Stefan Dösinger <stefan at codeweavers.com> wrote:
> > -    if (!(surface->surface_desc.u4.ddpfPixelFormat.dwFlags &
> (DDPF_PALETTEINDEXED1 | DDPF_PALETTEINDEXED2
> > -            | DDPF_PALETTEINDEXED4 | DDPF_PALETTEINDEXED8 |
> DDPF_PALETTEINDEXEDTO8)))
> > -        return DDERR_INVALIDPIXELFORMAT;
> > -
> >      if (surface->surface_desc.ddsCaps.dwCaps2 & DDSCAPS2_MIPMAPSUBLEVEL)
> >          return DDERR_NOTONMIPMAPSUBLEVEL;
> >
> Note that this inverts the ordering of the pixel format and sub-level
> validation. That might even be correct, but the associated test
> doesn't cover that case at all.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140424/008e6b66/attachment.html>


More information about the wine-devel mailing list