Author: jimtabor
Date: Thu Dec 27 11:41:38 2007
New Revision: 31458
URL:
http://svn.reactos.org/svn/reactos?rev=31458&view=rev
Log:
Fix a typo in text.h. Implemente NtGdiGetDhpdev.
Modified:
trunk/reactos/subsystems/win32/win32k/include/text.h
trunk/reactos/subsystems/win32/win32k/objects/dc.c
trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
Modified: trunk/reactos/subsystems/win32/win32k/include/text.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/text.h (original)
+++ trunk/reactos/subsystems/win32/win32k/include/text.h Thu Dec 27 11:41:38 2007
@@ -44,7 +44,7 @@
PLONG plPartition;
PLONG plNext;
PGLYPHPOS pgpNext;
- LONG lCurrentFont;
+ PLONG plCurrentFont;
POINTL ptlBaseLineAdjust;
INT cTTSysGlyphs;
INT cSysGlyphs;
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Thu Dec 27 11:41:38 2007
@@ -3346,4 +3346,30 @@
return FALSE;
}
+/*
+ * @implemented
+ */
+DHPDEV
+NtGdiGetDhpdev(
+ IN HDEV hdev)
+{
+ PGDIDEVICE pGdiDevice = (PGDIDEVICE) hdev;
+ if (!pGdiDevice) return NULL;
+ // ATM we have one, so this cheesie test
+ if (pGdiDevice != &PrimarySurface) return NULL;
+//
+// if ( pGdiDevice < MmSystemRangeStart) return NULL;
+// pPDev = &PrimarySurface;
+// KeEnterCriticalRegion();
+// do
+// {
+// if (pGdiDevice == pPDev) break;
+// else
+// pPDev = pPDev->ppdevNext;
+// } while (pPDev != NULL);
+// KeLeaveCriticalRegion();
+// if (!pPDev) return NULL;
+ return pGdiDevice->PDev;
+}
+
/* EOF */
Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original)
+++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Thu Dec 27 11:41:38 2007
@@ -2758,17 +2758,6 @@
/*
* @unimplemented
*/
-DHPDEV
-NtGdiGetDhpdev(
- IN HDEV hdev)
-{
- UNIMPLEMENTED;
- return NULL;
-}
-
- /*
- * @unimplemented
- */
BOOL
APIENTRY
NtGdiGetEmbUFI(