update core

This commit is contained in:
ochibani 2025-01-02 20:48:12 +02:00
parent 0bb124c09f
commit 6af8f0f3f6
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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",