Goplat <mrnobo1024(a)yahoo.com>om>:
SetPixel should return the new color. Bug 909.
Modified: trunk/reactos/subsys/win32k/objects/bitmaps.c
_____
Modified: trunk/reactos/subsys/win32k/objects/bitmaps.c
--- trunk/reactos/subsys/win32k/objects/bitmaps.c 2005-10-14
18:29:55 UTC (rev 18449)
+++ trunk/reactos/subsys/win32k/objects/bitmaps.c 2005-10-14
18:32:38 UTC (rev 18450)
@@ -1022,10 +1022,9 @@
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);
}
Show replies by date