[PATCH] DrawDibDraw flag handling
Andreas Mohr
andi at rhlx01.fht-esslingen.de
Thu Oct 14 10:21:41 CDT 2004
Hi,
On Thu, Oct 14, 2004 at 03:53:41PM +0100, Peter Riocreux wrote:
> if (!(wFlags & DDF_DONTDRAW) && whdd->hpal)
> - SelectPalette(hdc, whdd->hpal, FALSE);
> + if ((wFlags & DDF_BACKGROUNDPAL) && ! (wFlags & DDF_SAME_HDC))
> + SelectPalette(hdc, whdd->hpal, TRUE);
> + else
> + SelectPalette(hdc, whdd->hpal, FALSE);
This is rather non-obvious if handling, I'm surprised that the compiler
doesn't warn about it, or does it?
Could you add proper braces there?
Thanks!
Andreas Mohr
More information about the wine-devel
mailing list