[ros-diffs] [jimtabor] 36826: - Thanks Tommy! Cleanup millimeter conversion.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sun Oct 19 06:52:48 CEST 2008


Author: jimtabor
Date: Sat Oct 18 23:52:48 2008
New Revision: 36826

URL: http://svn.reactos.org/svn/reactos?rev=36826&view=rev
Log:
- Thanks Tommy! Cleanup millimeter conversion.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dc.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dc.c?rev=36826&r1=36825&r2=36826&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Sat Oct 18 23:52:48 2008
@@ -1821,8 +1821,8 @@
 
   pDevCaps->ulVersion         = pGdiInfo->ulVersion;
   pDevCaps->ulTechnology      = pGdiInfo->ulTechnology;
-  pDevCaps->ulHorzSizeM       = (pGdiInfo->ulHorzSize + 500) / 0x3E8u;
-  pDevCaps->ulVertSizeM       = (pGdiInfo->ulVertSize + 500) / 0x3E8u;
+  pDevCaps->ulHorzSizeM       = (pGdiInfo->ulHorzSize + 500) / 1000;
+  pDevCaps->ulVertSizeM       = (pGdiInfo->ulVertSize + 500) / 1000;
   pDevCaps->ulHorzSize        = pGdiInfo->ulHorzSize;
   pDevCaps->ulVertSize        = pGdiInfo->ulVertSize;
   pDevCaps->ulHorzRes         = pGdiInfo->ulHorzRes;



More information about the Ros-diffs mailing list