mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 05:34:21 +00:00
[WIN32K]
addendum to r50928: 24 and 32bpp BI_RGB bitmaps are BGR svn path=/trunk/; revision=50932
This commit is contained in:
parent
04e49a00e3
commit
efd76a4a9c
1 changed files with 3 additions and 2 deletions
|
@ -929,7 +929,6 @@ BITMAP_GetObject(SURFACE *psurf, INT Count, LPVOID buffer)
|
|||
case BMF_1BPP:
|
||||
case BMF_4BPP:
|
||||
case BMF_8BPP:
|
||||
case BMF_24BPP:
|
||||
pds->dsBmih.biCompression = BI_RGB;
|
||||
break;
|
||||
|
||||
|
@ -940,8 +939,10 @@ BITMAP_GetObject(SURFACE *psurf, INT Count, LPVOID buffer)
|
|||
pds->dsBmih.biCompression = BI_BITFIELDS;
|
||||
break;
|
||||
|
||||
case BMF_24BPP:
|
||||
case BMF_32BPP:
|
||||
if (psurf->ppal->flFlags & (PAL_RGB|PAL_BGR))
|
||||
/* 24/32bpp BI_RGB is actually BGR format */
|
||||
if (psurf->ppal->flFlags & PAL_BGR)
|
||||
pds->dsBmih.biCompression = BI_RGB;
|
||||
else
|
||||
pds->dsBmih.biCompression = BI_BITFIELDS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue