[WIN32K, GENDIB]

- Did you know that we should ignore alpha channel of pattern in ROPs? You didn't, I didn't, now we do.
[WIN32K]
  - Use BGR palette as default for 24 and 32 bpp bitmaps.

svn path=/branches/reactos-yarotows/; revision=48470
This commit is contained in:
Jérôme Gardou 2010-08-06 14:55:44 +00:00
parent 3f5d90a47a
commit b06db1f05e
2 changed files with 5 additions and 2 deletions

View file

@ -151,6 +151,9 @@ static const ULONG ExpandDest[16] =
0xF0F0F0F0 /* 1111 */,
};
/* Ignore alpha channel in Pattern */
Pattern &= 0x00ffffff ;
/* Optimized code for the various named rop codes. */
switch (Rop)
{

View file

@ -124,8 +124,8 @@ HPALETTE FASTCALL PALETTE_Init(VOID)
appalSurfaceDefault[BMF_4BPP] = gppalDefault;
appalSurfaceDefault[BMF_8BPP] = gppalDefault;
appalSurfaceDefault[BMF_16BPP] = &gpalRGB565;
appalSurfaceDefault[BMF_24BPP] = &gpalRGB;
appalSurfaceDefault[BMF_32BPP] = &gpalRGB;
appalSurfaceDefault[BMF_24BPP] = &gpalBGR;
appalSurfaceDefault[BMF_32BPP] = &gpalBGR;
appalSurfaceDefault[BMF_4RLE] = gppalDefault;
appalSurfaceDefault[BMF_8RLE] = gppalDefault;
appalSurfaceDefault[BMF_JPEG] = &gpalRGB;