diff options
| author | Lauri Kasanen <cand@gmx.com> | 2014-08-28 08:26:41 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2014-08-28 08:26:41 +0000 |
| commit | ca904c01adcd9431b636a6a809c66b0af079166c (patch) | |
| tree | f3523e205b183599941e4171e8b039cac48469a7 /src/fl_plastic.cxx | |
| parent | 9a4ae935a1b21dbc1450290ed793873a3eec8ed0 (diff) | |
Const the remaining fl_gray_ramp references.
These were nastily done by extern, and so unnoticable in a non-LTO build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_plastic.cxx')
| -rw-r--r-- | src/fl_plastic.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index 6ded6fec7..f4ee49103 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -35,7 +35,7 @@ //#define USE_OLD_PLASTIC_BOX #define USE_OLD_PLASTIC_COLOR -extern uchar *fl_gray_ramp(); +extern const uchar *fl_gray_ramp(); inline Fl_Color shade_color(uchar gc, Fl_Color bc) { #ifdef USE_OLD_PLASTIC_COLOR @@ -71,7 +71,7 @@ inline Fl_Color shade_color(uchar gc, Fl_Color bc) { static void frame_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); int b = ((int) strlen(c)) / 4 + 1; for (x += b, y += b, w -= 2 * b, h -= 2 * b; b > 1; b --) @@ -91,7 +91,7 @@ static void frame_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) { static void frame_round(int x, int y, int w, int h, const char *c, Fl_Color bc) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); size_t b = strlen(c) / 4 + 1; if (w==h) { @@ -145,7 +145,7 @@ static void frame_round(int x, int y, int w, int h, const char *c, Fl_Color bc) static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); int i, j; int clen = (int) strlen(c) - 1; int chalf = clen / 2; @@ -217,7 +217,7 @@ static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) { } static void shade_round(int x, int y, int w, int h, const char *c, Fl_Color bc) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); int i; int clen = (int) (strlen(c) - 1); int chalf = clen / 2; @@ -277,7 +277,7 @@ static void up_frame(int x, int y, int w, int h, Fl_Color c) { static void narrow_thin_box(int x, int y, int w, int h, Fl_Color c) { if (h<=0 || w<=0) return; - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); fl_color(shade_color(g['R'], c)); fl_rectf(x+1, y+1, w-2, h-2); fl_color(shade_color(g['I'], c)); |
