gdi32: Constify some variables (2 of 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sun Apr 29 07:17:29 CDT 2007


I believe the second parameter of PolyTextOut() is const in the SDK.

-- Andy.
---
Changelog:
    gdi32: Constify some variables.

diff -urN a/dlls/gdi32/font.c b/dlls/gdi32/font.c
--- a/dlls/gdi32/font.c	2007-04-07 19:01:33.000000000 +0100
+++ b/dlls/gdi32/font.c	2007-04-29 12:39:57.000000000 +0100
@@ -2332,9 +2332,9 @@
  *
  * See PolyTextOutW.
  */
-BOOL WINAPI PolyTextOutA ( HDC hdc,               /* [in] Handle to device context */
-                           PPOLYTEXTA pptxt,      /* [in] Array of strings */
-                           INT cStrings )         /* [in] Number of strings in array */
+BOOL WINAPI PolyTextOutA ( HDC hdc,                 /* [in] Handle to device context */
+                           const POLYTEXTA *pptxt,  /* [in] Array of strings */
+                           INT cStrings )           /* [in] Number of strings in array */
 {
     for (; cStrings>0; cStrings--, pptxt++)
         if (!ExtTextOutA( hdc, pptxt->x, pptxt->y, pptxt->uiFlags, &pptxt->rcl, pptxt->lpstr, pptxt->n, pptxt->pdx ))
@@ -2353,9 +2353,9 @@
  *  TRUE:  Success.
  *  FALSE: Failure.
  */
-BOOL WINAPI PolyTextOutW ( HDC hdc,               /* [in] Handle to device context */
-                           PPOLYTEXTW pptxt,      /* [in] Array of strings */
-                           INT cStrings )         /* [in] Number of strings in array */
+BOOL WINAPI PolyTextOutW ( HDC hdc,                 /* [in] Handle to device context */
+                           const POLYTEXTW *pptxt,  /* [in] Array of strings */
+                           INT cStrings )           /* [in] Number of strings in array */
 {
     for (; cStrings>0; cStrings--, pptxt++)
         if (!ExtTextOutW( hdc, pptxt->x, pptxt->y, pptxt->uiFlags, &pptxt->rcl, pptxt->lpstr, pptxt->n, pptxt->pdx ))
diff -urN a/include/wingdi.h b/include/wingdi.h
--- a/include/wingdi.h	2007-03-26 14:14:12.000000000 +0100
+++ b/include/wingdi.h	2007-04-29 12:49:02.000000000 +0100
@@ -3660,8 +3660,8 @@
 BOOL      WINAPI UpdateICMRegKeyW(DWORD,LPWSTR,LPWSTR,UINT);
 #define     UpdateICMRegKey WINELIB_NAME_AW(UpdateICMRegKey)
 BOOL      WINAPI WidenPath(HDC);
-BOOL      WINAPI PolyTextOutA(HDC,PPOLYTEXTA,INT);
-BOOL      WINAPI PolyTextOutW(HDC,PPOLYTEXTW,INT);
+BOOL      WINAPI PolyTextOutA(HDC,const POLYTEXTA*,INT);
+BOOL      WINAPI PolyTextOutW(HDC,const POLYTEXTW*,INT);
 #define   PolyTextOut WINELIB_NAME_AW(PolyTextOut)
 
 /* These defines are used by wglSwapLayerBuffers */



More information about the wine-patches mailing list