Dmitry Timoshkov : winex11.drv: Constify the pen dash data.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 20 06:02:38 CDT 2007


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Fri Jul 20 17:25:09 2007 +0900

winex11.drv: Constify the pen dash data.

---

 dlls/winex11.drv/pen.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dlls/winex11.drv/pen.c b/dlls/winex11.drv/pen.c
index d2a0284..96d9043 100644
--- a/dlls/winex11.drv/pen.c
+++ b/dlls/winex11.drv/pen.c
@@ -30,16 +30,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(x11drv);
  */
 HPEN X11DRV_SelectPen( X11DRV_PDEVICE *physDev, HPEN hpen )
 {
+    static const char PEN_dash[]          = { 16,8 };
+    static const char PEN_dot[]           = { 4,4 };
+    static const char PEN_dashdot[]       = { 12,8,4,8 };
+    static const char PEN_dashdotdot[]    = { 12,4,4,4,4,4 };
+    static const char PEN_alternate[]     = { 1,1 };
+    static const char EXTPEN_dash[]       = { 3,1 };
+    static const char EXTPEN_dot[]        = { 1,1 };
+    static const char EXTPEN_dashdot[]    = { 3,1,1,1 };
+    static const char EXTPEN_dashdotdot[] = { 3,1,1,1,1,1 };
     LOGPEN logpen;
-    static char PEN_dash[]       = { 16,8 };
-    static char PEN_dot[]        = { 4,4 };
-    static char PEN_dashdot[]    = { 12,8,4,8 };
-    static char PEN_dashdotdot[] = { 12,4,4,4,4,4 };
-    static char PEN_alternate[]  = { 1,1 };
-    static char EXTPEN_dash[]       = { 3,1 };
-    static char EXTPEN_dot[]        = { 1,1 };
-    static char EXTPEN_dashdot[]    = { 3,1,1,1 };
-    static char EXTPEN_dashdotdot[] = { 3,1,1,1,1,1 };
     int i;
 
     if (!GetObjectW( hpen, sizeof(logpen), &logpen ))




More information about the wine-cvs mailing list