mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08: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
@ -1598,6 +1598,9 @@ NtGdiGetPixel(
|
|||||||
|
|
||||||
/* Delete the surface */
|
/* Delete the surface */
|
||||||
GDIOBJ_vDeleteObject(&psurfDest->BaseObject);
|
GDIOBJ_vDeleteObject(&psurfDest->BaseObject);
|
||||||
|
|
||||||
|
/* The top byte is zero */
|
||||||
|
ulRGBColor &= 0x00FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
|
Loading…
Reference in New Issue
Block a user