diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-04-21 09:09:37 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-04-21 09:09:37 +0000 |
| commit | b475babf172ec6702af57f514c6fc28bd43159da (patch) | |
| tree | 115b0aa1a977a8496552c2b16161f96573e350a9 /test/image.cxx | |
| parent | 03ec459eb03b18c4792c9edc5f8e585653c276e9 (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/image.cxx')
| -rw-r--r-- | test/image.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/image.cxx b/test/image.cxx index 689fe0701..64f339c8c 100644 --- a/test/image.cxx +++ b/test/image.cxx @@ -30,7 +30,7 @@ // #include <FL/Fl.H> -#include <FL/Fl_Window.H> +#include <FL/Fl_Double_Window.H> #include <FL/Fl_Button.H> #include <FL/Fl_Image.H> #include <stdio.h> @@ -65,7 +65,7 @@ void make_image() { Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb,*overb,*inactb; Fl_Button *b; -Fl_Window *w; +Fl_Double_Window *w; void button_cb(Fl_Widget *,void *) { int i = 0; @@ -121,7 +121,7 @@ int main(int argc, char **argv) { } #endif - Fl_Window window(400,400); ::w = &window; + Fl_Double_Window window(400,400); ::w = &window; window.color(FL_WHITE); Fl_Button b(140,160,120,120,"Image w/Alpha"); ::b = &b; |
