aboutsummaryrefslogtreecommitdiff
path: root/src/undo.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-03-13 07:45:48 +0000
committerAkshay <[email protected]>2021-03-13 07:45:48 +0000
commit4b4ebe84d2cfbb8b0ddf7b678c5fe4cff53e5089 (patch)
treec04174ca126041760a95075a7e3a33928b7b220b /src/undo.rs
parentf1d0fd346bd3607c89307ad801d1f12b582f661a (diff)
refactor to use pixmap over Vec<bool>
Diffstat (limited to 'src/undo.rs')
-rw-r--r--src/undo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/undo.rs b/src/undo.rs
index 2249fe7..b590312 100644
--- a/src/undo.rs
+++ b/src/undo.rs
@@ -1,12 +1,12 @@
1#[derive(Copy, Clone, Debug)] 1#[derive(Copy, Clone, Debug)]
2pub struct ModifyRecord { 2pub struct ModifyRecord {
3 pub point: (i32, i32), 3 pub point: (u32, u32),
4 pub old_val: bool, 4 pub old_val: bool,
5 pub val: bool, 5 pub val: bool,
6} 6}
7 7
8impl ModifyRecord { 8impl ModifyRecord {
9 pub fn new(point: (i32, i32), old_val: bool, val: bool) -> Self { 9 pub fn new(point: (u32, u32), old_val: bool, val: bool) -> Self {
10 ModifyRecord { 10 ModifyRecord {
11 point, 11 point,
12 old_val, 12 old_val,