mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Force a recompute when setting map modes.
svn path=/trunk/; revision=36652
This commit is contained in:
parent
23bb9ae68f
commit
18edd07564
2 changed files with 10 additions and 8 deletions
|
@ -1275,8 +1275,13 @@ SetMapMode(
|
|||
return 0;
|
||||
}
|
||||
#endif
|
||||
if ((Mode == Dc_Attr->iMapMode) && (Mode != MM_ISOTROPIC)) return Mode;
|
||||
return GetAndSetDCDWord( hdc, GdiGetSetMapMode, Mode, 0, 0, 0 );
|
||||
// Force change if Isotropic is set for recompute.
|
||||
if ((Mode != Dc_Attr->iMapMode) || (Mode == MM_ISOTROPIC))
|
||||
{
|
||||
Dc_Attr->ulDirty_ &= ~SLOW_WIDTHS;
|
||||
return GetAndSetDCDWord( hdc, GdiGetSetMapMode, Mode, 0, 0, 0 );
|
||||
}
|
||||
return Dc_Attr->iMapMode;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -657,12 +657,10 @@ IntGdiSetMapMode(PDC dc,
|
|||
|
||||
PrevMapMode = Dc_Attr->iMapMode;
|
||||
|
||||
if (MapMode != Dc_Attr->iMapMode || (MapMode != MM_ISOTROPIC && MapMode != MM_ANISOTROPIC))
|
||||
{
|
||||
Dc_Attr->iMapMode = MapMode;
|
||||
Dc_Attr->iMapMode = MapMode;
|
||||
|
||||
switch (MapMode)
|
||||
{
|
||||
switch (MapMode)
|
||||
{
|
||||
case MM_TEXT:
|
||||
Dc_Attr->szlWindowExt.cx = 1;
|
||||
Dc_Attr->szlWindowExt.cy = 1;
|
||||
|
@ -717,7 +715,6 @@ IntGdiSetMapMode(PDC dc,
|
|||
default:
|
||||
Dc_Attr->iMapMode = PrevMapMode;
|
||||
PrevMapMode = 0;
|
||||
}
|
||||
|
||||
DC_UpdateXforms(dc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue