mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 08:38:17 +00:00
- Add flag sets and clears for SetMapMode. Assosiate Map Mode flags with Xform flags and start the use and implementation for user mode.
svn path=/trunk/; revision=35847
This commit is contained in:
parent
af64e75b22
commit
bf514701b8
1 changed files with 9 additions and 0 deletions
|
@ -668,6 +668,10 @@ IntGdiSetMapMode(PDC dc,
|
|||
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 @@ IntGdiSetMapMode(PDC dc,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue