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/sudoku.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/sudoku.cxx')
| -rw-r--r-- | test/sudoku.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sudoku.cxx b/test/sudoku.cxx index 8cea0ae36..5cabc5f20 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -27,7 +27,7 @@ #include <FL/Fl.H> #include <FL/Enumerations.H> -#include <FL/Fl_Window.H> +#include <FL/Fl_Double_Window.H> #include <FL/Fl_Button.H> #include <FL/Fl_Group.H> #include <FL/fl_ask.H> @@ -162,7 +162,7 @@ class SudokuCell : public Fl_Widget { // Sudoku window class... -class Sudoku : public Fl_Window { +class Sudoku : public Fl_Double_Window { Fl_Sys_Menu_Bar *menubar_; Fl_Group *grid_; time_t seed_; @@ -627,7 +627,7 @@ Fl_Preferences Sudoku::prefs_(Fl_Preferences::USER, "fltk.org", "sudoku"); // Create a Sudoku game window... Sudoku::Sudoku() - : Fl_Window(GROUP_SIZE * 3, GROUP_SIZE * 3 + MENU_OFFSET, "Sudoku") + : Fl_Double_Window(GROUP_SIZE * 3, GROUP_SIZE * 3 + MENU_OFFSET, "Sudoku") { int j, k; Fl_Group *g; @@ -1215,7 +1215,7 @@ Sudoku::reset_cb(Fl_Widget *widget, void *) { void Sudoku::resize(int X, int Y, int W, int H) { // Resize the window... - Fl_Window::resize(X, Y, W, H); + Fl_Double_Window::resize(X, Y, W, H); // Save the new window geometry... prefs_.set("x", X); |
