mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
Goplat <mrnobo1024@yahoo.com>:
SetPixel should return the new color. Bug 909. svn path=/trunk/; revision=18450
This commit is contained in:
parent
463b91a5b9
commit
cf7b48d567
|
@ -1022,10 +1022,9 @@ NtGdiSetPixel(
|
|||
INT Y,
|
||||
COLORREF Color)
|
||||
{
|
||||
COLORREF cr = NtGdiGetPixel(hDC,X,Y);
|
||||
if(cr != CLR_INVALID && NtGdiSetPixelV(hDC,X,Y,Color))
|
||||
if (NtGdiSetPixelV(hDC,X,Y,Color))
|
||||
{
|
||||
return(cr);
|
||||
return NtGdiGetPixel(hDC,X,Y);
|
||||
}
|
||||
return ((COLORREF) -1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue