mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
![Katayama Hirofumi MZ](/assets/img/avatar_default.png)
Fix NtGdiTransformPoints, gdi32!DPtoLP, gdi32!LPtoDP and gdi32!SetMapMode functions. Fix CORE-15983. CORE-15983
80 lines
1.4 KiB
C
80 lines
1.4 KiB
C
#pragma once
|
|
|
|
typedef struct _EXFORMOBJ
|
|
{
|
|
MATRIX *pmx;
|
|
} EXFORMOBJ;
|
|
|
|
#define XFORMOBJ EXFORMOBJ
|
|
#define XFORMOBJ_iGetXform EXFORMOBJ_iGetXform
|
|
#define XFORMOBJ_iGetFloatObjXform EXFORMOBJ_iGetFloatObjXform
|
|
#define XFORMOBJ_bApplyXform EXFORMOBJ_bApplyXform
|
|
#define XFORMOBJ_vInit EXFORMOBJ_vInit
|
|
#define XFORMOBJ_pmx EXFORMOBJ_pmx
|
|
#define XFORMOBJ_iSetXform EXFORMOBJ_iSetXform
|
|
#define XFORMOBJ_iCombine EXFORMOBJ_iCombine
|
|
#define XFORMOBJ_iCombineXform EXFORMOBJ_iCombineXform
|
|
#define XFORMOBJ_iInverse EXFORMOBJ_iInverse
|
|
|
|
FORCEINLINE
|
|
VOID
|
|
XFORMOBJ_vInit(
|
|
OUT XFORMOBJ *pxo,
|
|
IN MATRIX *pmx)
|
|
{
|
|
pxo->pmx = pmx;
|
|
}
|
|
|
|
FORCEINLINE
|
|
MATRIX*
|
|
XFORMOBJ_pmx(
|
|
IN XFORMOBJ *pxo)
|
|
{
|
|
return pxo->pmx;
|
|
}
|
|
|
|
ULONG
|
|
NTAPI
|
|
XFORMOBJ_iSetXform(
|
|
IN OUT XFORMOBJ *pxo,
|
|
IN const XFORML *pxform);
|
|
|
|
ULONG
|
|
NTAPI
|
|
XFORMOBJ_iCombine(
|
|
IN OUT XFORMOBJ *pxo,
|
|
IN XFORMOBJ *pxo1,
|
|
IN XFORMOBJ *pxo2);
|
|
|
|
ULONG
|
|
NTAPI
|
|
XFORMOBJ_iCombineXform(
|
|
IN OUT XFORMOBJ *pxo,
|
|
IN XFORMOBJ *pxo1,
|
|
IN XFORML *pxform,
|
|
IN BOOL bLeftMultiply);
|
|
|
|
ULONG
|
|
NTAPI
|
|
XFORMOBJ_iInverse(
|
|
OUT XFORMOBJ *pxoDst,
|
|
IN XFORMOBJ *pxoSrc);
|
|
|
|
ULONG
|
|
APIENTRY
|
|
XFORMOBJ_iGetXform(
|
|
IN XFORMOBJ *pxo,
|
|
OUT XFORML *pxform);
|
|
|
|
BOOL
|
|
APIENTRY
|
|
XFORMOBJ_bApplyXform(
|
|
IN XFORMOBJ *pxo,
|
|
IN ULONG iMode,
|
|
IN ULONG cPoints,
|
|
IN PVOID pvIn,
|
|
OUT PVOID pvOut);
|
|
|
|
BOOL FASTCALL MX_IsInvertible(IN PMATRIX pmx);
|
|
VOID FASTCALL MX_Set0(OUT PMATRIX pmx);
|