summaryrefslogtreecommitdiff
path: root/test/pixmap.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/pixmap.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/pixmap.cxx')
-rw-r--r--test/pixmap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pixmap.cxx b/test/pixmap.cxx
index 3c50f01fb..db3f6fc50 100644
--- a/test/pixmap.cxx
+++ b/test/pixmap.cxx
@@ -26,7 +26,7 @@
//
#include <FL/Fl.H>
-#include <FL/Fl_Window.H>
+#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Pixmap.H>
#include <stdio.h>
@@ -37,7 +37,7 @@
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;
@@ -66,7 +66,7 @@ int main(int argc, char **argv) {
if (Fl::args(argc,argv,i,arg) < argc)
Fl::fatal(" -8 # : use default visual\n%s\n",Fl::help);
- Fl_Window window(400,400); ::w = &window;
+ Fl_Double_Window window(400,400); ::w = &window;
Fl_Button b(140,160,120,120,"Pixmap"); ::b = &b;
Fl_Pixmap *pixmap = new Fl_Pixmap(porsche_xpm);
Fl_Pixmap *depixmap;