mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
Take DC origin into account
svn path=/trunk/; revision=11405
This commit is contained in:
parent
985184b134
commit
825e1dc162
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: bitmaps.c,v 1.79 2004/07/14 20:48:57 navaraf Exp $ */
|
/* $Id: bitmaps.c,v 1.80 2004/10/23 19:17:54 gvg Exp $ */
|
||||||
#include <w32k.h>
|
#include <w32k.h>
|
||||||
|
|
||||||
#define IN_RECT(r,x,y) \
|
#define IN_RECT(r,x,y) \
|
||||||
|
@ -548,6 +548,8 @@ NtGdiGetPixel(HDC hDC, INT XPos, INT YPos)
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
XPos += dc->w.DCOrgX;
|
||||||
|
YPos += dc->w.DCOrgY;
|
||||||
if ( IN_RECT(dc->CombinedClip->rclBounds,XPos,YPos) )
|
if ( IN_RECT(dc->CombinedClip->rclBounds,XPos,YPos) )
|
||||||
{
|
{
|
||||||
bInRect = TRUE;
|
bInRect = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue