mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
formatting, no code change
svn path=/trunk/; revision=39203
This commit is contained in:
parent
891cc22a1e
commit
b9e20bc7be
1 changed files with 795 additions and 806 deletions
|
@ -40,7 +40,7 @@ IntFixIsotropicMapping(PDC dc)
|
|||
ULONG xdim;
|
||||
ULONG ydim;
|
||||
PDC_ATTR Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
xdim = EngMulDiv(Dc_Attr->szlViewportExt.cx,
|
||||
((PGDIDEVICE)dc->pPDev)->GDIInfo.ulHorzSize,
|
||||
|
@ -96,16 +96,12 @@ BOOL APIENTRY NtGdiCombineTransform(LPXFORM UnsafeXFormResult,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(UnsafeXFormResult,
|
||||
sizeof(XFORM),
|
||||
1);
|
||||
ProbeForRead(Unsafexform1,
|
||||
sizeof(XFORM),
|
||||
1);
|
||||
ProbeForRead(Unsafexform2,
|
||||
sizeof(XFORM),
|
||||
1);
|
||||
Ret = IntGdiCombineTransform(UnsafeXFormResult, Unsafexform1, Unsafexform2);
|
||||
ProbeForWrite(UnsafeXFormResult, sizeof(XFORM), 1);
|
||||
ProbeForRead(Unsafexform1, sizeof(XFORM), 1);
|
||||
ProbeForRead(Unsafexform2, sizeof(XFORM), 1);
|
||||
Ret = IntGdiCombineTransform(UnsafeXFormResult,
|
||||
Unsafexform1,
|
||||
Unsafexform2);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
@ -119,12 +115,12 @@ BOOL APIENTRY NtGdiCombineTransform(LPXFORM UnsafeXFormResult,
|
|||
|
||||
int
|
||||
FASTCALL
|
||||
IntGetGraphicsMode ( PDC dc )
|
||||
IntGetGraphicsMode(PDC dc)
|
||||
{
|
||||
PDC_ATTR Dc_Attr;
|
||||
ASSERT ( dc );
|
||||
ASSERT(dc);
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
return Dc_Attr->iGraphicsMode;
|
||||
}
|
||||
|
||||
|
@ -137,7 +133,7 @@ IntGdiModifyWorldTransform(PDC pDc,
|
|||
ASSERT(pDc);
|
||||
XFORM xformWorld2Wnd;
|
||||
|
||||
switch(Mode)
|
||||
switch (Mode)
|
||||
{
|
||||
case MWT_IDENTITY:
|
||||
xformWorld2Wnd.eM11 = 1.0f;
|
||||
|
@ -181,7 +177,7 @@ NtGdiGetTransform(HDC hDC,
|
|||
PDC dc;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
dc = DC_LockDc ( hDC );
|
||||
dc = DC_LockDc(hDC);
|
||||
if (!dc)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
|
@ -196,10 +192,8 @@ NtGdiGetTransform(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(XForm,
|
||||
sizeof(XFORM),
|
||||
1);
|
||||
switch(iXform)
|
||||
ProbeForWrite(XForm, sizeof(XFORM), 1);
|
||||
switch (iXform)
|
||||
{
|
||||
case GdiWorldSpaceToPageSpace:
|
||||
MatrixS2XForm(XForm, &dc->DcLevel.mxWorldToPage);
|
||||
|
@ -229,11 +223,11 @@ NtGdiGetTransform(HDC hDC,
|
|||
*/
|
||||
BOOL
|
||||
APIENTRY
|
||||
NtGdiTransformPoints( HDC hDC,
|
||||
NtGdiTransformPoints(HDC hDC,
|
||||
PPOINT UnsafePtsIn,
|
||||
PPOINT UnsafePtOut,
|
||||
INT Count,
|
||||
INT iMode )
|
||||
INT iMode)
|
||||
{
|
||||
PDC dc;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
@ -257,7 +251,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
Size = Count * sizeof(POINT);
|
||||
|
||||
Points = (LPPOINT)ExAllocatePoolWithTag(PagedPool, Size, TAG_COORD);
|
||||
if(!Points)
|
||||
if (!Points)
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY);
|
||||
|
@ -266,15 +260,9 @@ NtGdiTransformPoints( HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(UnsafePtOut,
|
||||
Size,
|
||||
1);
|
||||
ProbeForRead(UnsafePtsIn,
|
||||
Size,
|
||||
1);
|
||||
RtlCopyMemory(Points,
|
||||
UnsafePtsIn,
|
||||
Size);
|
||||
ProbeForWrite(UnsafePtOut, Size, 1);
|
||||
ProbeForRead(UnsafePtsIn, Size, 1);
|
||||
RtlCopyMemory(Points, UnsafePtsIn, Size);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
@ -282,7 +270,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
|
@ -311,9 +299,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
_SEH2_TRY
|
||||
{
|
||||
/* pointer was already probed! */
|
||||
RtlCopyMemory(UnsafePtOut,
|
||||
Points,
|
||||
Size);
|
||||
RtlCopyMemory(UnsafePtOut, Points, Size);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
@ -321,7 +307,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
|
@ -386,25 +372,26 @@ NtGdiOffsetViewportOrgEx(HDC hDC,
|
|||
PDC_ATTR Dc_Attr;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
dc = DC_LockDc ( hDC );
|
||||
if(!dc)
|
||||
dc = DC_LockDc(hDC);
|
||||
if (!dc)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
if (UnsafePoint)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(UnsafePoint,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
ProbeForWrite(UnsafePoint, sizeof(POINT), 1);
|
||||
UnsafePoint->x = Dc_Attr->ptlViewportOrg.x;
|
||||
UnsafePoint->y = Dc_Attr->ptlViewportOrg.y;
|
||||
if ( Dc_Attr->dwLayout & LAYOUT_RTL ) UnsafePoint->x = -UnsafePoint->x;
|
||||
if (Dc_Attr->dwLayout & LAYOUT_RTL)
|
||||
{
|
||||
UnsafePoint->x = -UnsafePoint->x;
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
@ -412,7 +399,7 @@ NtGdiOffsetViewportOrgEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if ( !NT_SUCCESS(Status) )
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -420,11 +407,15 @@ NtGdiOffsetViewportOrgEx(HDC hDC,
|
|||
}
|
||||
}
|
||||
|
||||
if ( Dc_Attr->dwLayout & LAYOUT_RTL ) XOffset = -XOffset;
|
||||
if (Dc_Attr->dwLayout & LAYOUT_RTL)
|
||||
{
|
||||
XOffset = -XOffset;
|
||||
}
|
||||
Dc_Attr->ptlViewportOrg.x += XOffset;
|
||||
Dc_Attr->ptlViewportOrg.y += YOffset;
|
||||
DC_UpdateXforms(dc);
|
||||
DC_UnlockDc(dc);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -445,7 +436,7 @@ NtGdiOffsetWindowOrgEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
if (Point)
|
||||
{
|
||||
|
@ -453,9 +444,7 @@ NtGdiOffsetWindowOrgEx(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(Point,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
ProbeForWrite(Point, sizeof(POINT), 1);
|
||||
Point->x = Dc_Attr->ptlWindowOrg.x;
|
||||
Point->y = Dc_Attr->ptlWindowOrg.y;
|
||||
}
|
||||
|
@ -465,7 +454,7 @@ NtGdiOffsetWindowOrgEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -503,17 +492,15 @@ NtGdiScaleViewportExtEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
pDc_Attr = pDC->pDc_Attr;
|
||||
if(!pDc_Attr) pDc_Attr = &pDC->Dc_Attr;
|
||||
if (!pDc_Attr) pDc_Attr = &pDC->Dc_Attr;
|
||||
|
||||
if ( pSize )
|
||||
if (pSize)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(pSize,
|
||||
sizeof(LPSIZE),
|
||||
1);
|
||||
ProbeForWrite(pSize, sizeof(LPSIZE), 1);
|
||||
|
||||
pSize->cx = pDc_Attr->szlViewportExt.cx;
|
||||
pSize->cy = pDc_Attr->szlViewportExt.cy;
|
||||
|
@ -524,7 +511,7 @@ NtGdiScaleViewportExtEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(pDC);
|
||||
|
@ -534,22 +521,27 @@ NtGdiScaleViewportExtEx(HDC hDC,
|
|||
|
||||
if (pDc_Attr->iMapMode > MM_TWIPS)
|
||||
{
|
||||
if ( ( Xdenom ) && ( Ydenom ) )
|
||||
if (Xdenom && Ydenom)
|
||||
{
|
||||
X = Xnum * pDc_Attr->szlViewportExt.cx / Xdenom;
|
||||
if ( X )
|
||||
if (X)
|
||||
{
|
||||
Y = Ynum * pDc_Attr->szlViewportExt.cy / Ydenom;
|
||||
if ( Y )
|
||||
if (Y)
|
||||
{
|
||||
pDc_Attr->szlViewportExt.cx = X;
|
||||
pDc_Attr->szlViewportExt.cy = Y;
|
||||
|
||||
IntMirrorWindowOrg(pDC);
|
||||
|
||||
pDc_Attr->flXform |= (PAGE_EXTENTS_CHANGED|INVALIDATE_ATTRIBUTES|DEVICE_TO_WORLD_INVALID);
|
||||
pDc_Attr->flXform |= (PAGE_EXTENTS_CHANGED |
|
||||
INVALIDATE_ATTRIBUTES |
|
||||
DEVICE_TO_WORLD_INVALID);
|
||||
|
||||
if (pDc_Attr->iMapMode == MM_ISOTROPIC) IntFixIsotropicMapping(pDC);
|
||||
if (pDc_Attr->iMapMode == MM_ISOTROPIC)
|
||||
{
|
||||
IntFixIsotropicMapping(pDC);
|
||||
}
|
||||
DC_UpdateXforms(pDC);
|
||||
|
||||
Ret = TRUE;
|
||||
|
@ -585,17 +577,15 @@ NtGdiScaleWindowExtEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
pDc_Attr = pDC->pDc_Attr;
|
||||
if(!pDc_Attr) pDc_Attr = &pDC->Dc_Attr;
|
||||
if (!pDc_Attr) pDc_Attr = &pDC->Dc_Attr;
|
||||
|
||||
if ( pSize )
|
||||
if (pSize)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(pSize,
|
||||
sizeof(LPSIZE),
|
||||
1);
|
||||
ProbeForWrite(pSize, sizeof(LPSIZE), 1);
|
||||
|
||||
X = pDc_Attr->szlWindowExt.cx;
|
||||
if (pDc_Attr->dwLayout & LAYOUT_RTL) X = -X;
|
||||
|
@ -608,7 +598,7 @@ NtGdiScaleWindowExtEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(pDC);
|
||||
|
@ -618,13 +608,13 @@ NtGdiScaleWindowExtEx(HDC hDC,
|
|||
|
||||
if (pDc_Attr->iMapMode > MM_TWIPS)
|
||||
{
|
||||
if (( Xdenom ) && ( Ydenom ))
|
||||
if (Xdenom && Ydenom)
|
||||
{
|
||||
X = Xnum * pDc_Attr->szlWindowExt.cx / Xdenom;
|
||||
if ( X )
|
||||
if (X)
|
||||
{
|
||||
Y = Ynum * pDc_Attr->szlWindowExt.cy / Ydenom;
|
||||
if ( Y )
|
||||
if (Y)
|
||||
{
|
||||
pDc_Attr->szlWindowExt.cx = X;
|
||||
pDc_Attr->szlWindowExt.cy = Y;
|
||||
|
@ -655,7 +645,7 @@ IntGdiSetMapMode(PDC dc,
|
|||
{
|
||||
int PrevMapMode;
|
||||
PDC_ATTR Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
PrevMapMode = Dc_Attr->iMapMode;
|
||||
|
||||
|
@ -737,13 +727,13 @@ NtGdiSetViewportExtEx(HDC hDC,
|
|||
PDC_ATTR Dc_Attr;
|
||||
|
||||
dc = DC_LockDc(hDC);
|
||||
if ( !dc )
|
||||
if (!dc)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
switch (Dc_Attr->iMapMode)
|
||||
{
|
||||
|
@ -768,9 +758,7 @@ NtGdiSetViewportExtEx(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(Size,
|
||||
sizeof(SIZE),
|
||||
1);
|
||||
ProbeForWrite(Size, sizeof(SIZE), 1);
|
||||
Size->cx = Dc_Attr->szlViewportExt.cx;
|
||||
Size->cy = Dc_Attr->szlViewportExt.cy;
|
||||
|
||||
|
@ -786,7 +774,7 @@ NtGdiSetViewportExtEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -818,7 +806,7 @@ NtGdiSetViewportOrgEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
if (Point)
|
||||
{
|
||||
|
@ -826,9 +814,7 @@ NtGdiSetViewportOrgEx(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(Point,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
ProbeForWrite(Point, sizeof(POINT), 1);
|
||||
Point->x = Dc_Attr->ptlViewportOrg.x;
|
||||
Point->y = Dc_Attr->ptlViewportOrg.y;
|
||||
}
|
||||
|
@ -838,7 +824,7 @@ NtGdiSetViewportOrgEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -872,7 +858,7 @@ NtGdiSetWindowExtEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
switch (Dc_Attr->iMapMode)
|
||||
{
|
||||
|
@ -892,9 +878,7 @@ NtGdiSetWindowExtEx(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(Size,
|
||||
sizeof(SIZE),
|
||||
1);
|
||||
ProbeForWrite(Size, sizeof(SIZE), 1);
|
||||
Size->cx = Dc_Attr->szlWindowExt.cx;
|
||||
Size->cy = Dc_Attr->szlWindowExt.cy;
|
||||
}
|
||||
|
@ -904,7 +888,7 @@ NtGdiSetWindowExtEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -938,7 +922,7 @@ NtGdiSetWindowOrgEx(HDC hDC,
|
|||
return FALSE;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
if (Point)
|
||||
{
|
||||
|
@ -946,9 +930,7 @@ NtGdiSetWindowOrgEx(HDC hDC,
|
|||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(Point,
|
||||
sizeof(POINT),
|
||||
1);
|
||||
ProbeForWrite(Point, sizeof(POINT), 1);
|
||||
Point->x = Dc_Attr->ptlWindowOrg.x;
|
||||
Point->y = Dc_Attr->ptlWindowOrg.y;
|
||||
}
|
||||
|
@ -958,7 +940,7 @@ NtGdiSetWindowOrgEx(HDC hDC,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
if(!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -986,7 +968,7 @@ IntMirrorWindowOrg(PDC dc)
|
|||
LONG X;
|
||||
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
if (!(Dc_Attr->dwLayout & LAYOUT_RTL))
|
||||
{
|
||||
|
@ -999,7 +981,7 @@ IntMirrorWindowOrg(PDC dc)
|
|||
//
|
||||
X = (dc->erclWindow.right - dc->erclWindow.left) - 1; // Get device width - 1
|
||||
|
||||
X = ( X * Dc_Attr->szlWindowExt.cx) / Dc_Attr->szlViewportExt.cx;
|
||||
X = (X * Dc_Attr->szlWindowExt.cx) / Dc_Attr->szlViewportExt.cx;
|
||||
|
||||
Dc_Attr->ptlWindowOrg.x = Dc_Attr->lWindowOrgx - X; // Now set the inverted win origion.
|
||||
|
||||
|
@ -1032,7 +1014,7 @@ NtGdiSetLayout(
|
|||
return GDI_ERROR;
|
||||
}
|
||||
Dc_Attr = dc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
if (!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
|
||||
|
||||
Dc_Attr->dwLayout = dwLayout;
|
||||
oLayout = Dc_Attr->dwLayout;
|
||||
|
@ -1043,7 +1025,10 @@ NtGdiSetLayout(
|
|||
return oLayout;
|
||||
}
|
||||
|
||||
if (dwLayout & LAYOUT_RTL) Dc_Attr->iMapMode = MM_ANISOTROPIC;
|
||||
if (dwLayout & LAYOUT_RTL)
|
||||
{
|
||||
Dc_Attr->iMapMode = MM_ANISOTROPIC;
|
||||
}
|
||||
|
||||
Dc_Attr->szlWindowExt.cy = -Dc_Attr->szlWindowExt.cy;
|
||||
Dc_Attr->ptlWindowOrg.x = -Dc_Attr->ptlWindowOrg.x;
|
||||
|
@ -1060,7 +1045,9 @@ NtGdiSetLayout(
|
|||
else
|
||||
dc->DcLevel.flPath |= DCPATH_CLOCKWISE;
|
||||
|
||||
Dc_Attr->flXform |= (PAGE_EXTENTS_CHANGED|INVALIDATE_ATTRIBUTES|DEVICE_TO_WORLD_INVALID);
|
||||
Dc_Attr->flXform |= (PAGE_EXTENTS_CHANGED |
|
||||
INVALIDATE_ATTRIBUTES |
|
||||
DEVICE_TO_WORLD_INVALID);
|
||||
|
||||
// DC_UpdateXforms(dc);
|
||||
DC_UnlockDc(dc);
|
||||
|
@ -1121,14 +1108,16 @@ NtGdiSetSizeDevice(
|
|||
PDC dc;
|
||||
PDC_ATTR pDc_Attr;
|
||||
|
||||
if (!cxVirtualDevice ||
|
||||
!cyVirtualDevice ) return FALSE;
|
||||
if (!cxVirtualDevice || !cyVirtualDevice)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
dc = DC_LockDc(hdc);
|
||||
if (!dc) return FALSE;
|
||||
|
||||
pDc_Attr = dc->pDc_Attr;
|
||||
if(!pDc_Attr) pDc_Attr = &dc->Dc_Attr;
|
||||
if (!pDc_Attr) pDc_Attr = &dc->Dc_Attr;
|
||||
|
||||
pDc_Attr->szlVirtualDeviceSize.cx = cxVirtualDevice;
|
||||
pDc_Attr->szlVirtualDeviceSize.cy = cyVirtualDevice;
|
||||
|
@ -1160,7 +1149,7 @@ NtGdiSetVirtualResolution(
|
|||
if (!dc) return FALSE;
|
||||
|
||||
pDc_Attr = dc->pDc_Attr;
|
||||
if(!pDc_Attr) pDc_Attr = &dc->Dc_Attr;
|
||||
if (!pDc_Attr) pDc_Attr = &dc->Dc_Attr;
|
||||
|
||||
pDc_Attr->szlVirtualDevicePixel.cx = cxVirtualDevicePixel;
|
||||
pDc_Attr->szlVirtualDevicePixel.cy = cyVirtualDevicePixel;
|
||||
|
|
Loading…
Reference in a new issue