Const the shadow, embossed, and engraved color tables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
1c82d8e14b
commit
b42e32f70d
@ -26,7 +26,7 @@
|
||||
|
||||
static void innards(
|
||||
const Fl_Label* o, int X, int Y, int W, int H, Fl_Align align,
|
||||
int data[][3], int n)
|
||||
const int data[][3], int n)
|
||||
{
|
||||
Fl_Align a1 = align;
|
||||
if (a1 & FL_ALIGN_CLIP) {
|
||||
@ -42,14 +42,14 @@ static void innards(
|
||||
static void fl_shadow_label(
|
||||
const Fl_Label* o, int X, int Y, int W, int H, Fl_Align align)
|
||||
{
|
||||
static int data[2][3] = {{2,2,FL_DARK3},{0,0,0}};
|
||||
static const int data[2][3] = {{2,2,FL_DARK3},{0,0,0}};
|
||||
innards(o, X, Y, W, H, align, data, 2);
|
||||
}
|
||||
|
||||
static void fl_engraved_label(
|
||||
const Fl_Label* o, int X, int Y, int W, int H, Fl_Align align)
|
||||
{
|
||||
static int data[7][3] = {
|
||||
static const int data[7][3] = {
|
||||
{1,0,FL_LIGHT3},{1,1,FL_LIGHT3},{0,1,FL_LIGHT3},
|
||||
{-1,0,FL_DARK3},{-1,-1,FL_DARK3},{0,-1,FL_DARK3},
|
||||
{0,0,0}};
|
||||
@ -59,7 +59,7 @@ static void fl_engraved_label(
|
||||
static void fl_embossed_label(
|
||||
const Fl_Label* o, int X, int Y, int W, int H, Fl_Align align)
|
||||
{
|
||||
static int data[7][3] = {
|
||||
static const int data[7][3] = {
|
||||
{-1,0,FL_LIGHT3},{-1,-1,FL_LIGHT3},{0,-1,FL_LIGHT3},
|
||||
{1,0,FL_DARK3},{1,1,FL_DARK3},{0,1,FL_DARK3},
|
||||
{0,0,0}};
|
||||
|
Loading…
Reference in New Issue
Block a user