Skip to content

Commit fa776e0

Browse files
committed
fix: Revert to DrawBorderSettings::Default on Windows
1 parent 1844a0c commit fa776e0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/capturer/engine/win/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,11 @@ pub fn create_capturer(options: &Options, tx: mpsc::Sender<Frame>) -> WCStream {
151151
false => CursorCaptureSettings::WithoutCursor,
152152
};
153153

154-
let show_highlight = match options.show_highlight {
155-
true => DrawBorderSettings::WithBorder,
156-
false => DrawBorderSettings::WithoutBorder,
157-
};
158-
159154
let settings = match target {
160155
Target::Display(display) => Settings::Display(WCSettings::new(
161156
WCMonitor::from_raw_hmonitor(display.raw_handle.0),
162157
show_cursor,
163-
show_highlight,
158+
DrawBorderSettings::Default,
164159
color_format,
165160
FlagStruct {
166161
tx,
@@ -170,7 +165,7 @@ pub fn create_capturer(options: &Options, tx: mpsc::Sender<Frame>) -> WCStream {
170165
Target::Window(window) => Settings::Window(WCSettings::new(
171166
WCWindow::from_raw_hwnd(window.raw_handle.0),
172167
show_cursor,
173-
show_highlight,
168+
DrawBorderSettings::Default,
174169
color_format,
175170
FlagStruct {
176171
tx,

0 commit comments

Comments
 (0)