diff options
Diffstat (limited to 'src/display/cell_size.rs')
-rw-r--r-- | src/display/cell_size.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/display/cell_size.rs b/src/display/cell_size.rs index 29685dd..bb259ef 100644 --- a/src/display/cell_size.rs +++ b/src/display/cell_size.rs @@ -44,3 +44,11 @@ pub fn cell_size_in_pixels() -> std::io::Result<(u32, u32)> { } } +#[cfg(not(unix))] +pub fn cell_size_in_pixels() -> std::io::Result<(u32, u32)> { + // there's probably a way but I don't know it + Err(std::io::Error::new( + std::io::ErrorKind::Other, + "fetching cell size isn't supported on Windows", + )) +} |