mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTGDI] GetPixel's return top byte is zero if valid (#5677)
According to the results of CImage testcase, the top byte of the GetPixel() return value is zero if the return is a valid color. Do bitwise-AND operation if the color value is valid. CORE-19008
This commit is contained in:
parent
ea5d2c5f7a
commit
2a16fc5e19
1 changed files with 3 additions and 0 deletions
|
@ -1598,6 +1598,9 @@ NtGdiGetPixel(
|
|||
|
||||
/* Delete the surface */
|
||||
GDIOBJ_vDeleteObject(&psurfDest->BaseObject);
|
||||
|
||||
/* The top byte is zero */
|
||||
ulRGBColor &= 0x00FFFFFF;
|
||||
}
|
||||
|
||||
leave:
|
||||
|
|
Loading…
Reference in a new issue