-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make framebuffer an optional feature
Some users of libremarkable might want to use it only for its input handling, but not for its framebuffer functionality. By disabling the framebuffer feature, users can also avoid lots of dependencies (73 instead of 151 dependencies to install), some of which (e.g., zstd) even need a C compiler. The default features will build everything as before, so this will not cause any compatibility issues.
- Loading branch information
Showing
6 changed files
with
60 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use crate::input::scan::SCANNED; | ||
|
||
pub const DISPLAYWIDTH: u16 = 1404; | ||
pub const DISPLAYHEIGHT: u16 = 1872; | ||
|
||
lazy_static! { | ||
/// Will be 767 rM1 and 1403 on the rM2 | ||
pub static ref MTWIDTH: u16 = SCANNED.mt_width; | ||
/// Will be 1023 the rM1 and 1871 on the rM2 | ||
pub static ref MTHEIGHT: u16 = SCANNED.mt_height; | ||
|
||
/// Will be 15725 on both the rM1 and rM2 | ||
pub static ref WACOMWIDTH: u16 = SCANNED.wacom_width; | ||
/// Will be 20967 on the rM1 and 20966 on the rM2 | ||
pub static ref WACOMHEIGHT: u16 = 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