Skip to content

Commit

Permalink
fix: bad definitions and imports on non linux systems
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Jan 12, 2024
1 parent 39867ee commit 73108fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/sss_cli/src/shot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use libwayshot::reexport::Transform;
#[cfg(target_os = "linux")]
use libwayshot::{CaptureRegion, WayshotConnection};
use screenshots::display_info::DisplayInfo;
use screenshots::image::imageops::{overlay, rotate180, rotate270, rotate90};
use screenshots::image::imageops::overlay;
#[cfg(target_os = "linux")]
use screenshots::image::imageops::{rotate180, rotate270, rotate90};
use screenshots::image::{Rgba, RgbaImage};
use screenshots::Screen;

Expand Down Expand Up @@ -87,7 +89,10 @@ impl ShotImpl {
..
} = s.display_info;
(
#[cfg(target_os = "linux")]
(x, y, width, height, Transform::Normal),
#[cfg(not(target_os = "linux"))]
(x, y, width, height),
s.capture().unwrap(),
)
})
Expand Down

0 comments on commit 73108fa

Please sign in to comment.