From ca904c01adcd9431b636a6a809c66b0af079166c Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 28 Aug 2014 08:26:41 +0000 Subject: 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 --- src/fl_round_box.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fl_round_box.cxx') 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']); -- cgit v1.2.3