summaryrefslogtreecommitdiff
path: root/test/line_style.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2009-04-21 09:09:37 +0000
committerGreg Ercolano <erco@seriss.com>2009-04-21 09:09:37 +0000
commitb475babf172ec6702af57f514c6fc28bd43159da (patch)
tree115b0aa1a977a8496552c2b16161f96573e350a9 /test/line_style.cxx
parent03ec459eb03b18c4792c9edc5f8e585653c276e9 (diff)
Most test demos converted to use Fl_Double_Window
to prevent flicker when new users run test/demo programs. For details, see fltk.development thread started 04/16/09, "Subject: browser demo flicker". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/line_style.cxx')
-rw-r--r--test/line_style.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/line_style.cxx b/test/line_style.cxx
index 3f5ae5e37..a4d394510 100644
--- a/test/line_style.cxx
+++ b/test/line_style.cxx
@@ -26,27 +26,27 @@
//
#include <FL/Fl.H>
-#include <FL/Fl_Window.H>
+#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Value_Slider.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Check_Button.H>
#include <FL/Fl_Box.H>
-Fl_Window *form;
+Fl_Double_Window *form;
Fl_Slider *sliders[8];
Fl_Choice *choice[3];
Fl_Check_Button *draw_line;
-class test_box: public Fl_Window {
+class test_box: public Fl_Double_Window {
void draw();
public:
test_box(int x,int y,int w,int h,const char *l=0)
- : Fl_Window(x,y,w,h,l) {}
+ : Fl_Double_Window(x,y,w,h,l) {}
}*test;
void test_box::draw() {
- Fl_Window::draw();
+ Fl_Double_Window::draw();
fl_color((uchar)(sliders[0]->value()),
(uchar)(sliders[1]->value()),
(uchar)(sliders[2]->value()));
@@ -111,7 +111,7 @@ void do_redraw(Fl_Widget*,void*)
}
void makeform(const char *) {
- form = new Fl_Window(500,230,"fl_line_style() test");
+ form = new Fl_Double_Window(500,230,"fl_line_style() test");
sliders[0]= new Fl_Value_Slider(280,10,180,20,"R");
sliders[0]->bounds(0,255);
sliders[1]= new Fl_Value_Slider(280,30,180,20,"G");