Goplat <mrnobo1024@yahoo.com>:

SetPixel should return the new color. Bug 909.

svn path=/trunk/; revision=18450
This commit is contained in:
Gé van Geldorp 2005-10-14 18:32:38 +00:00
parent 463b91a5b9
commit cf7b48d567

View file

@ -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);
}