Author: jimtabor
Date: Sun Aug 31 19:51:05 2008
New Revision: 35847
URL:
http://svn.reactos.org/svn/reactos?rev=35847&view=rev
Log:
- Add flag sets and clears for SetMapMode. Assosiate Map Mode flags with Xform flags and
start the use and implementation for user mode.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/coord.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/coord.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/coord.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/coord.c [iso-8859-1] Sun Aug 31 19:51:05
2008
@@ -668,6 +668,10 @@
Dc_Attr->szlWindowExt.cy = 1;
Dc_Attr->szlViewportExt.cx = 1;
Dc_Attr->szlViewportExt.cy = 1;
+ Dc_Attr->flXform &= ~(ISO_OR_ANISO_MAP_MODE|PTOD_EFM22_NEGATIVE|
+ PTOD_EFM11_NEGATIVE|POSITIVE_Y_IS_UP);
+ Dc_Attr->flXform |= (PAGE_XLATE_CHANGED|PAGE_TO_DEVICE_SCALE_IDENTITY|
+ INVALIDATE_ATTRIBUTES|DEVICE_TO_WORLD_INVALID);
break;
case MM_LOMETRIC:
@@ -707,7 +711,12 @@
break;
case MM_ANISOTROPIC:
+ Dc_Attr->flXform &= ~(PAGE_TO_DEVICE_IDENTITY|POSITIVE_Y_IS_UP);
+ Dc_Attr->flXform |= ISO_OR_ANISO_MAP_MODE;
break;
+ default:
+ Dc_Attr->iMapMode = PrevMapMode;
+ PrevMapMode = 0;
}
DC_UpdateXforms(dc);