aboutsummaryrefslogtreecommitdiff
path: root/src/gui/boardwidget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/boardwidget.rs')
-rw-r--r--src/gui/boardwidget.rs28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/boardwidget.rs b/src/gui/boardwidget.rs
index 2708f21..bbddfb4 100644
--- a/src/gui/boardwidget.rs
+++ b/src/gui/boardwidget.rs
@@ -1,21 +1,21 @@
/*
- This file is part of Takwrap.
+This file is part of Takwrap.
- Takwrap is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+Takwrap is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
- Takwrap is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+Takwrap is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with Takwrap. If not, see <https://www.gnu.org/licenses/>.
-*/
+You should have received a copy of the GNU General Public License
+along with Takwrap. If not, see <https://www.gnu.org/licenses/>.
+ */
-use fltk::{app::*, button::*, draw::*};
+use fltk::{button::*, draw::*, enums::Color, prelude::*};
use std::rc::*;
use crate::game::*;
@@ -233,7 +233,7 @@ impl BoardWidget {
pub fn new(button: Button, size: i32) -> BoardWidget {
let renderer = Rc::new(BoardRenderer::default().with_size(size).with_org(&button));
let mut g = BoardWidget { button, renderer };
- g.button.draw2(g.generate_draw(&Vec::new()));
+ g.button.draw(g.generate_draw(&Vec::new()));
return g;
}