Andrew Talbot : gdi32: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 30 07:11:37 CDT 2007


Module: wine
Branch: master
Commit: 260deef761dd538247f90008edced37c7c47841f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=260deef761dd538247f90008edced37c7c47841f

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sun Apr 29 13:17:29 2007 +0100

gdi32: Constify some variables.

---

 dlls/gdi32/font.c |    8 ++------
 include/wingdi.h  |    4 ++--
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 263454d..d9e6e35 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -2332,9 +2332,7 @@ BOOL WINAPI TextOutW(HDC hdc, INT x, INT y, LPCWSTR str, INT count)
  *
  * 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, const POLYTEXTA *pptxt, INT cStrings )
 {
     for (; cStrings>0; cStrings--, pptxt++)
         if (!ExtTextOutA( hdc, pptxt->x, pptxt->y, pptxt->uiFlags, &pptxt->rcl, pptxt->lpstr, pptxt->n, pptxt->pdx ))
@@ -2353,9 +2351,7 @@ BOOL WINAPI PolyTextOutA ( HDC hdc,               /* [in] Handle to device conte
  *  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, const POLYTEXTW *pptxt, INT cStrings )
 {
     for (; cStrings>0; cStrings--, pptxt++)
         if (!ExtTextOutW( hdc, pptxt->x, pptxt->y, pptxt->uiFlags, &pptxt->rcl, pptxt->lpstr, pptxt->n, pptxt->pdx ))
diff --git a/include/wingdi.h b/include/wingdi.h
index ca72f33..77ad737 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -3660,8 +3660,8 @@ BOOL      WINAPI UpdateICMRegKeyA(DWORD,LPSTR,LPSTR,UINT);
 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-cvs mailing list