From 87d95b7bc5277d20f18f210000fe2e6e67a3b798 Mon Sep 17 00:00:00 2001
From: Peter Ganten <ganten@uni-bremen.de>
Date: Sun, 19 Sep 1999 14:17:14 +0000
Subject: [PATCH] Stubs for PolyTextOutA/W.

---
 include/wingdi.h   |  3 +++
 objects/text.c     | 31 +++++++++++++++++++++++++++++++
 relay32/gdi32.spec |  4 ++--
 3 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/include/wingdi.h b/include/wingdi.h
index aacf915f949..59a4aa6181e 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -3355,6 +3355,9 @@ BOOL      WINAPI TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD);
 BOOL      WINAPI UnrealizeObject(HGDIOBJ);
 BOOL      WINAPI UpdateColors(HDC);
 BOOL      WINAPI WidenPath(HDC);
+BOOL      WINAPI PolyTextOutA(HDC,PPOLYTEXTA,INT);
+BOOL      WINAPI PolyTextOutW(HDC,PPOLYTEXTW,INT);
+#define   PolyTextOut WINELIB_NAME_AW(PolyTextOut)
 
 #ifdef __cplusplus
 }
diff --git a/objects/text.c b/objects/text.c
index bf6bf2a8cd1..c542a947185 100644
--- a/objects/text.c
+++ b/objects/text.c
@@ -10,6 +10,7 @@
 #include "wine/winuser16.h"
 #include "winbase.h"
 #include "winuser.h"
+#include "winerror.h"
 #include "dc.h"
 #include "gdi.h"
 #include "heap.h"
@@ -782,3 +783,33 @@ UINT WINAPI GetTextCharsetInfo(
     }
     return charSet;
 }
+
+/***********************************************************************
+ * PolyTextOutA [GDI.402]  Draw several Strings
+ */
+BOOL WINAPI PolyTextOutA (
+			  HDC hdc,               /* Handle to device context */			  
+			  PPOLYTEXTA pptxt,      /* array of strings */
+			  INT cStrings           /* Number of strings in array */
+			  )
+{
+  FIXME("stub!\n");
+  SetLastError ( ERROR_CALL_NOT_IMPLEMENTED );
+  return 0;
+}
+
+
+
+/***********************************************************************
+ * PolyTextOutW [GDI.403] Draw several Strings
+ */
+BOOL WINAPI PolyTextOutW ( 
+			  HDC hdc,               /* Handle to device context */			  
+			  PPOLYTEXTW pptxt,      /* array of strings */
+			  INT cStrings           /* Number of strings in array */
+			  )
+{
+  FIXME("stub!\n");
+  SetLastError ( ERROR_CALL_NOT_IMPLEMENTED );
+  return 0;
+}
diff --git a/relay32/gdi32.spec b/relay32/gdi32.spec
index 76b6c317e40..3ca3acb094a 100644
--- a/relay32/gdi32.spec
+++ b/relay32/gdi32.spec
@@ -304,8 +304,8 @@ init    MAIN_GdiInit
 399 stdcall PolyDraw(long ptr ptr long) PolyDraw
 400 stdcall PolyPolygon(long ptr ptr long) PolyPolygon
 401 stdcall PolyPolyline(long ptr ptr long) PolyPolyline
-402 stub PolyTextOutA
-403 stub PolyTextOutW
+402 stdcall PolyTextOutA(long ptr long) PolyTextOutA
+403 stdcall PolyTextOutW(long ptr long) PolyTextOutW
 404 stdcall Polygon(long ptr long) Polygon
 405 stdcall Polyline(long ptr long) Polyline
 406 stdcall PolylineTo(long ptr long) PolylineTo
-- 
GitLab