From a5b662f2a5a560360e96e23137c9a6c8c8be82cf Mon Sep 17 00:00:00 2001 From: ochibani <11yzyv86j@relay.firefox.com> Date: Thu, 2 Jan 2025 20:48:12 +0200 Subject: [PATCH] update core --- core/src/ffmpeg_linux.rs | 2 +- core/src/ffmpeg_windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ffmpeg_linux.rs b/core/src/ffmpeg_linux.rs index 57faac5..2ddf76d 100644 --- a/core/src/ffmpeg_linux.rs +++ b/core/src/ffmpeg_linux.rs @@ -34,7 +34,7 @@ pub struct Ffmpeg { impl Ffmpeg { // Start video recording - pub fn start_video(&mut self, width: u16, height: u16, x: u16, y: u16, mode: RecordMode) -> Result<()> { + pub fn start_video(&mut self, x: u16, y: u16, width: u16, height: u16, mode: RecordMode) -> Result<()> { let display = format!("{}+{},{}", std::env::var("DISPLAY").unwrap_or_else(|_| ":0".to_string()) .as_str(), diff --git a/core/src/ffmpeg_windows.rs b/core/src/ffmpeg_windows.rs index ec1effd..b0201ee 100644 --- a/core/src/ffmpeg_windows.rs +++ b/core/src/ffmpeg_windows.rs @@ -35,7 +35,7 @@ pub struct Ffmpeg { impl Ffmpeg { // Start video recording - pub fn start_video(&mut self, width: u16, height: u16, x: u16, y: u16, mode: RecordMode) -> Result<()> { + pub fn start_video(&mut self, x: u16, y: u16, width: u16, height: u16, mode: RecordMode) -> Result<()> { let display = match mode { RecordMode::Area => "desktop", RecordMode::Screen => "desktop",