-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pierre Fenoll <[email protected]>
- Loading branch information
Showing
9 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#[cfg(feature = "input")] | ||
use crate::input::scan::SCANNED; | ||
#[cfg(feature = "input")] | ||
use once_cell::sync::Lazy; | ||
use std::sync::LazyLock; | ||
|
||
pub const DISPLAYWIDTH: u16 = 1404; | ||
pub const DISPLAYHEIGHT: u16 = 1872; | ||
|
||
/// Will be 767 rM1 and 1403 on the rM2 | ||
#[cfg(feature = "input")] | ||
pub static MTWIDTH: Lazy<u16> = Lazy::new(|| SCANNED.mt_width); | ||
pub static MTWIDTH: LazyLock<u16> = LazyLock::new(|| SCANNED.mt_width); | ||
/// Will be 1023 the rM1 and 1871 on the rM2 | ||
#[cfg(feature = "input")] | ||
pub static MTHEIGHT: Lazy<u16> = Lazy::new(|| SCANNED.mt_height); | ||
pub static MTHEIGHT: LazyLock<u16> = LazyLock::new(|| SCANNED.mt_height); | ||
|
||
/// Will be 15725 on both the rM1 and rM2 | ||
#[cfg(feature = "input")] | ||
pub static WACOMWIDTH: Lazy<u16> = Lazy::new(|| SCANNED.wacom_width); | ||
pub static WACOMWIDTH: LazyLock<u16> = LazyLock::new(|| SCANNED.wacom_width); | ||
/// Will be 20967 on the rM1 and 20966 on the rM2 | ||
#[cfg(feature = "input")] | ||
pub static WACOMHEIGHT: Lazy<u16> = Lazy::new(|| SCANNED.wacom_height); | ||
pub static WACOMHEIGHT: LazyLock<u16> = LazyLock::new(|| SCANNED.wacom_height); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters