mirror of
https://github.com/reactos/reactos.git
synced 2025-06-14 04:58:31 +00:00
[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:
parent
3f5d90a47a
commit
b06db1f05e
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue