Author: gschneider
Date: Sun Oct 25 18:23:19 2009
New Revision: 43745
URL:
http://svn.reactos.org/svn/reactos?rev=43745&view=rev
Log:
[win32k] GetTransform:
- Add support for more transforms
- Fix return value for invalid/unsupported transform types
- Fixes 10 gdi32 mapping winetests
Modified:
trunk/reactos/include/reactos/win32k/ntgdityp.h
trunk/reactos/subsystems/win32/win32k/objects/coord.c
Modified: trunk/reactos/include/reactos/win32k/ntgdityp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdityp.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntgdityp.h [iso-8859-1] Sun Oct 25 18:23:19 2009
@@ -163,6 +163,9 @@
} GDILOOBJTYPE, *PGDILOOBJTYPE;
#define GdiWorldSpaceToPageSpace 0x203
+#define GdiWorldSpaceToDeviceSpace 0x204
+#define GdiPageSpaceToDeviceSpace 0x304
+#define GdiDeviceSpaceToWorldSpace 0x402
/* FIXME: Unknown */
typedef DWORD FULLSCREENCONTROL;
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 Oct 25 18:23:19
2009
@@ -198,7 +198,17 @@
MatrixS2XForm(XForm, &dc->dclevel.mxWorldToPage);
break;
+ case GdiWorldSpaceToDeviceSpace:
+ MatrixS2XForm(XForm, &dc->dclevel.mxWorldToDevice);
+ break;
+
+ case GdiDeviceSpaceToWorldSpace:
+ MatrixS2XForm(XForm, &dc->dclevel.mxDeviceToWorld);
+ break;
+
default:
+ DPRINT1("Unknown or unsupported transform %lu\n", iXform);
+ Status = STATUS_INVALID_PARAMETER;
break;
}
}