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_round_box.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_round_box.cxx')
| -rw-r--r-- | src/fl_round_box.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_round_box.cxx b/src/fl_round_box.cxx index 40f87b7cd..ad4423ae6 100644 --- a/src/fl_round_box.cxx +++ b/src/fl_round_box.cxx @@ -71,10 +71,10 @@ static void draw(int which, int x,int y,int w,int h, int inset, Fl_Color color) } } -extern uchar* fl_gray_ramp(); +extern const uchar* fl_gray_ramp(); void fl_round_down_box(int x, int y, int w, int h, Fl_Color bgcolor) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); draw(FILL, x, y, w, h, 2, bgcolor); draw(UPPER_LEFT, x+1, y, w-2, h, 0, (Fl_Color)g['N']); draw(UPPER_LEFT, x+1, y, w-2, h, 1, (Fl_Color)g['H']); @@ -88,7 +88,7 @@ void fl_round_down_box(int x, int y, int w, int h, Fl_Color bgcolor) { } void fl_round_up_box(int x, int y, int w, int h, Fl_Color bgcolor) { - uchar *g = fl_gray_ramp(); + const uchar *g = fl_gray_ramp(); draw(FILL, x, y, w, h, 2, bgcolor); draw(LOWER_RIGHT, x+1, y, w-2, h, 0, (Fl_Color)g['H']); draw(LOWER_RIGHT, x+1, y, w-2, h, 1, (Fl_Color)g['N']); |
