diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-01-02 03:50:54 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-01-02 03:50:54 +0000 |
| commit | e203237eb3406ce7d4639b33a3ea2b05d8b7e9c5 (patch) | |
| tree | be246b76f09f0439bf37c5fe34b06abb12ee5f6e /test/checkers.cxx | |
| parent | 5f2aa6ca9c0f3054a0dfa061d9e0662f421f8862 (diff) | |
Integrated menu into demo resource branch for OS X. Indicating items that open more choices with ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/checkers.cxx')
| -rw-r--r-- | test/checkers.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx index 1bfc9ccde..4c7a21524 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -962,13 +962,16 @@ int squarey(int i) {return (usermoves(i,2)-'1')*BOXSIZE+BMOFFSET;} void Board::draw() { make_bitmaps(); + // -- draw the board itself fl_draw_box(box(),0,0,w(),h(),color()); + // -- draw all dark tiles fl_color((Fl_Color)10 /*107*/); int x; for (x=0; x<8; x++) for (int y=0; y<8; y++) { if (!((x^y)&1)) fl_rectf(BORDER+x*BOXSIZE, BORDER+y*BOXSIZE, BOXSIZE-BORDER, BOXSIZE-BORDER); } - fl_color(FL_DARK3 /*FL_GRAY_RAMP+4*/); + // -- draw outlines around the fileds + fl_color(FL_DARK3); for (x=0; x<9; x++) { fl_rectf(x*BOXSIZE,0,BORDER,h()); fl_rectf(0,x*BOXSIZE,w(),BORDER); |
