[ros-diffs] [greatlrd] 28727: redirect GetTextCharsetInfo to win32k implement GetTextExtentPointI
greatlrd at svn.reactos.org
greatlrd at svn.reactos.org
Sat Sep 1 01:32:55 CEST 2007
Author: greatlrd
Date: Sat Sep 1 03:32:54 2007
New Revision: 28727
URL: http://svn.reactos.org/svn/reactos?rev=28727&view=rev
Log:
redirect GetTextCharsetInfo to win32k
implement GetTextExtentPointI
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/misc/stubs.c
trunk/reactos/dll/win32/gdi32/objects/text.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?rev=28727&r1=28726&r2=28727&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Sat Sep 1 03:32:54 2007
@@ -438,7 +438,7 @@
GetTextAlign at 4=NtGdiGetTextAlign at 4
GetTextCharacterExtra at 4
GetTextCharset at 4
-GetTextCharsetInfo at 12
+GetTextCharsetInfo at 12=NtGdiGetTextCharsetInfo at 12
GetTextColor at 4=NtGdiGetTextColor at 4
GetTextExtentExPointA at 28
GetTextExtentExPointI at 28
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=28727&r1=28726&r2=28727&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Sat Sep 1 03:32:54 2007
@@ -1761,20 +1761,16 @@
}
/*
- * @unimplemented
+ * @implemented
*/
BOOL
STDCALL
-GetTextExtentPointI(
- HDC hdc,
- LPWORD pgiIn,
- int cgi,
- LPSIZE lpSize
-)
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+GetTextExtentPointI(HDC hdc,
+ LPWORD pgiIn,
+ int cgi,
+ LPSIZE lpSize)
+{
+ return NtGdiGetTextExtent(hdc,pgiIn,cgi,lpSize,2);
}
Modified: trunk/reactos/dll/win32/gdi32/objects/text.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/text.c?rev=28727&r1=28726&r2=28727&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/text.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/text.c Sat Sep 1 03:32:54 2007
@@ -72,28 +72,13 @@
*/
int
STDCALL
-GetTextCharset(
- HDC hdc
- )
+GetTextCharset(HDC hdc)
{
/* MSDN docs say this is equivalent */
- return GetTextCharsetInfo(hdc, NULL, 0);
-}
-
-
-/*
- * @implemented
- */
-int
-STDCALL
-GetTextCharsetInfo(
- HDC hdc,
- LPFONTSIGNATURE lpSig,
- DWORD dwFlags
- )
-{
- return NtGdiGetTextCharsetInfo(hdc, lpSig, dwFlags);
-}
+ return NtGdiGetTextCharsetInfo(hdc,NULL,0);
+}
+
+
/*
More information about the Ros-diffs
mailing list