diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-12-21 14:05:36 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-12-21 14:05:36 +0000 |
| commit | 60b723c00c0de7261680bfd9c81fde798b9d8041 (patch) | |
| tree | 87cc8119f23fc4961228e7851dc41d27487141d2 /test/line_style.cxx | |
| parent | 0aacaeb2c2def745b5be702ca4347867f72be52f (diff) | |
simplified and removed an extraneous statement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/line_style.cxx')
| -rw-r--r-- | test/line_style.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/line_style.cxx b/test/line_style.cxx index d83080dae..ab49cf392 100644 --- a/test/line_style.cxx +++ b/test/line_style.cxx @@ -66,7 +66,7 @@ void test_box::draw() { // draw the defined fl_rect and fl_vertex first and then // the additional one-pixel line, if enabled - for (int i=0; i<(draw_line->value()?2:1); i++) { + for (int i=0; i<draw_line->value()+1; i++) { fl_rect(10,10,w()-20,h()-20); fl_begin_line(); fl_vertex(35, 35); @@ -116,7 +116,6 @@ void makeform(const char *) { sliders[0]->bounds(0,255); sliders[1]= new Fl_Value_Slider(280,30,180,20,"G"); sliders[1]->bounds(0,255); - sliders[1]->value(255); sliders[2]= new Fl_Value_Slider(280,50,180,20,"B"); sliders[2]->bounds(0,255); choice[0]= new Fl_Choice(280,70,180,20,"Style"); @@ -167,7 +166,6 @@ int main(int argc, char **argv) { return Fl::run(); } - // // End of "$Id$". // |
