Module: wine Branch: master Commit: 11f59093682e3f4f7a431544ad089d78fe862329 URL: http://source.winehq.org/git/wine.git/?a=commit;h=11f59093682e3f4f7a431544ad...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Jun 19 22:52:00 2008 +0100
riched20: Constify some variables.
---
dlls/riched20/paint.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index df2eda8..88576f6 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -288,7 +288,7 @@ static void ME_DrawRun(ME_Context *c, int x, int y, ME_DisplayItem *rundi, ME_Pa } }
-static struct {unsigned width_num : 4, width_den : 4, pen_style : 4, dble : 1;} border_details[] = { +static const struct {unsigned width_num : 4, width_den : 4, pen_style : 4, dble : 1;} border_details[] = { /* none */ {0, 1, PS_SOLID, FALSE}, /* 3/4 */ {3, 4, PS_SOLID, FALSE}, /* 1 1/2 */ {3, 2, PS_SOLID, FALSE}, @@ -303,7 +303,7 @@ static struct {unsigned width_num : 4, width_den : 4, pen_style : 4, dble : 1;} /* 1 1/2 dashed */ {3, 2, PS_DASH, FALSE}, };
-static COLORREF pen_colors[16] = { +static const COLORREF pen_colors[16] = { /* Black */ RGB(0x00, 0x00, 0x00), /* Blue */ RGB(0x00, 0x00, 0xFF), /* Cyan */ RGB(0x00, 0xFF, 0xFF), /* Green */ RGB(0x00, 0xFF, 0x00), /* Magenta */ RGB(0xFF, 0x00, 0xFF), /* Red */ RGB(0xFF, 0x00, 0x00),