File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -335,16 +335,7 @@ impl LinuxCapturer {
335
335
. pw_node_id ( ) ;
336
336
337
337
// TODO: Fix this hack
338
- let options = Options {
339
- fps : options. fps ,
340
- show_cursor : options. show_cursor ,
341
- show_highlight : options. show_highlight ,
342
- output_type : options. output_type ,
343
- targets : options. targets . clone ( ) ,
344
- excluded_targets : None ,
345
- output_resolution : crate :: capturer:: Resolution :: Captured ,
346
- source_rect : None ,
347
- } ;
338
+ let options = options. clone ( ) ;
348
339
let ( ready_sender, ready_recv) = sync_channel ( 1 ) ;
349
340
let capturer_join_handle = std:: thread:: spawn ( move || {
350
341
let res = pipewire_capturer ( options, tx, & ready_sender, stream_id) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ pub fn get_scale_factor(target: &Target) -> f64 {
57
57
return win:: get_scale_factor ( target) ;
58
58
59
59
#[ cfg( target_os = "linux" ) ]
60
- return 1 ;
60
+ return 1.0 ;
61
61
}
62
62
63
63
pub fn get_main_display ( ) -> Display {
@@ -67,8 +67,8 @@ pub fn get_main_display() -> Display {
67
67
#[ cfg( target_os = "windows" ) ]
68
68
return win:: get_main_display ( ) ;
69
69
70
- // #[cfg(target_os = "linux")]
71
- // return linux::get_main_display ();
70
+ #[ cfg( target_os = "linux" ) ]
71
+ unreachable ! ( ) ;
72
72
}
73
73
74
74
pub fn get_target_dimensions ( target : & Target ) -> ( u64 , u64 ) {
@@ -78,6 +78,6 @@ pub fn get_target_dimensions(target: &Target) -> (u64, u64) {
78
78
#[ cfg( target_os = "windows" ) ]
79
79
return win:: get_target_dimensions ( target) ;
80
80
81
- // #[cfg(target_os = "linux")]
82
- // return linux::get_target_dimensions(target );
81
+ #[ cfg( target_os = "linux" ) ]
82
+ unreachable ! ( ) ;
83
83
}
You can’t perform that action at this time.
0 commit comments