Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84db656 commit 636757fCopy full SHA for 636757f
libraries/embedded_graphics_libtock/src/tock_screen.rs
@@ -9,6 +9,12 @@ pub struct TockMonochromeScreen {
9
height: u32,
10
}
11
12
+impl Default for TockMonochromeScreen {
13
+ fn default() -> Self {
14
+ Self::new()
15
+ }
16
+}
17
+
18
impl TockMonochromeScreen {
19
pub fn new() -> Self {
20
let (width, height) = Screen::get_resolution().unwrap_or((0, 0));
0 commit comments