diff options
| author | Greg Ercolano <erco@seriss.com> | 2013-05-22 18:27:05 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2013-05-22 18:27:05 +0000 |
| commit | 1f06318f9acf8be25b2d1e7e065aef2736bc3535 (patch) | |
| tree | 8b9481808beb54f01d1a544c895fd4b6d97f2029 /examples/tree-as-container.cxx | |
| parent | e9767cce34a31eb3ad785936bba5b2971af1f79c (diff) | |
Fixes STR #2964.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/tree-as-container.cxx')
| -rw-r--r-- | examples/tree-as-container.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tree-as-container.cxx b/examples/tree-as-container.cxx index fa3280a93..e704d7a0b 100644 --- a/examples/tree-as-container.cxx +++ b/examples/tree-as-container.cxx @@ -32,12 +32,12 @@ class MyData : public Fl_Group { Fl_Input *fields[MAX_FIELDS]; public: MyData(int X,int Y,int W,int H) : Fl_Group(X,Y,W,H) { - static int colors[MAX_FIELDS] = { + static unsigned int colors[MAX_FIELDS] = { 0xffffdd00, 0xffdddd00, 0xddffff00, 0xddffdd00, 0xddddff00 }; for ( int t=0; t<MAX_FIELDS; t++ ) { fields[t] = new Fl_Input(X+t*FIELD_WIDTH,Y,FIELD_WIDTH,H); - fields[t]->color(colors[t]); + fields[t]->color(Fl_Color(colors[t])); } end(); } |
