[ros-bugs] [Bug 6241] New: WhatColor app: Bug in NtGDIGetPixel, returning 000000
ReactOS.Bugzilla at reactos.org
ReactOS.Bugzilla at reactos.org
Tue May 10 09:06:34 UTC 2011
http://www.reactos.org/bugzilla/show_bug.cgi?id=6241
Summary: WhatColor app: Bug in NtGDIGetPixel, returning 000000
Product: ReactOS
Version: TRUNK
Platform: x86 Hardware
OS/Version: ReactOS
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: Win32
AssignedTo: ros-bugs at reactos.org
ReportedBy: vicmarcal at hotmail.com
QAContact: ros-bugs at reactos.org
r51583 Vbox
WhatColor is a small app that shows in a Tooltip the RGB color of any pixel of
the screen.
In ReactOS it is always showing 000000
The app can be downloaded from here:
http://www.donationcoder.com/Software/Skrommel/WhatColor/WhatColor.exe
I have tracked down the Bug to NtGDIGetPixel with the following findings:
The COLORREF returned by NtGDIGetPixel is always 000000.
Inside NtGdiPixel it goes into:
if ((dc->rosdc.CombinedClip == NULL) ||
(RECTL_bPointInRect(&dc->rosdc.CombinedClip->rclBounds, XPos, YPos)))
Then it falls into: if (psurf)
Now it calls EXLATEOBJ_vInitialize(&exlo, psurf->ppal, &gpalRGB, 0, 0xffffff,
0)
Afterwards it calls XLATEOBJ_iXlate and assigns its ULONG return(always 000000)
to a COLORREF variable(should it be casted?).
One of these 2 functions is bugged.
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Ros-bugs
mailing list