mirror of https://github.com/fltk/fltk
Fixed index for sudoku difficulty menu entry - thanks to Manolo Gouy
for finding this, mentioned "BTW" in STR #2221. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
132d086eab
commit
d14693d307
|
@ -667,7 +667,7 @@ Sudoku::Sudoku()
|
||||||
prefs_.get("difficulty", difficulty_, 0);
|
prefs_.get("difficulty", difficulty_, 0);
|
||||||
if (difficulty_ < 0 || difficulty_ > 3) difficulty_ = 0;
|
if (difficulty_ < 0 || difficulty_ > 3) difficulty_ = 0;
|
||||||
|
|
||||||
items[8 + difficulty_].flags |= FL_MENU_VALUE;
|
items[10 + difficulty_].flags |= FL_MENU_VALUE;
|
||||||
|
|
||||||
menubar_ = new Fl_Sys_Menu_Bar(0, 0, 3 * GROUP_SIZE, 25);
|
menubar_ = new Fl_Sys_Menu_Bar(0, 0, 3 * GROUP_SIZE, 25);
|
||||||
menubar_->menu(items);
|
menubar_->menu(items);
|
||||||
|
|
Loading…
Reference in New Issue