mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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
1 changed files with 2 additions and 3 deletions
|
@ -1022,10 +1022,9 @@ NtGdiSetPixel(
|
||||||
INT Y,
|
INT Y,
|
||||||
COLORREF Color)
|
COLORREF Color)
|
||||||
{
|
{
|
||||||
COLORREF cr = NtGdiGetPixel(hDC,X,Y);
|
if (NtGdiSetPixelV(hDC,X,Y,Color))
|
||||||
if(cr != CLR_INVALID && NtGdiSetPixelV(hDC,X,Y,Color))
|
|
||||||
{
|
{
|
||||||
return(cr);
|
return NtGdiGetPixel(hDC,X,Y);
|
||||||
}
|
}
|
||||||
return ((COLORREF) -1);
|
return ((COLORREF) -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue