Author: fireball
Date: Thu Aug 6 19:47:08 2009
New Revision: 42434
URL:
http://svn.reactos.org/svn/reactos?rev=42434&view=rev
Log:
- Implement GetDCOrgEx.
Modified:
branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c
Modified: branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/winen…
==============================================================================
--- branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c [iso-8859-1] Thu Aug 6
19:47:08 2009
@@ -258,8 +258,17 @@
BOOL CDECL RosDrv_GetDCOrgEx( NTDRV_PDEVICE *physDev, LPPOINT lpp )
{
- UNIMPLEMENTED;
- return FALSE;
+ RECT dc_rect, drawable_rect;
+
+ /* Get DC rectangles */
+ RosGdiGetDcRects(physDev->hKernelDC, &dc_rect, &drawable_rect);
+
+ /* Calculate origin */
+ lpp->x = dc_rect.left + drawable_rect.left;
+ lpp->y = dc_rect.top + drawable_rect.top;
+
+ /* Report success */
+ return TRUE;
}
INT CDECL RosDrv_GetDIBits( NTDRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan, UINT
lines,