Mercurial > tablet-emu
diff src/state.rs @ 13:97e543f50f62
Split GTK UI into another module.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 01 Nov 2020 16:08:29 +0100 |
parents | d43c31aff57c |
children | adab13145994 |
line wrap: on
line diff
--- a/src/state.rs +++ b/src/state.rs @@ -18,7 +18,7 @@ use std::fs::File; use std::sync::{Arc, Mutex}; use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle}; -use crate::{WIDTH, HEIGHT, MAX_X, MAX_Y}; +use crate::{DEFAULT_WIDTH, DEFAULT_HEIGHT, MAX_X, MAX_Y}; use crate::uinput::{create_uinput_device, input_axis_new, input_misc_new, input_key_new, input_synchronize_new}; pub struct State { @@ -40,8 +40,8 @@ impl State { Ok(Arc::new(Mutex::new(State { dev, - width: WIDTH as f64, - height: HEIGHT as f64, + width: DEFAULT_WIDTH as f64, + height: DEFAULT_HEIGHT as f64, selected_tool: Key::ButtonToolPen, pressed: false, })))