mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
Goplat <[email protected]>:
SetPixel should return the new color. Bug 909. svn path=/trunk/; revision=18450
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user