mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-03-31 23:04:55 +03:00
update core
This commit is contained in:
parent
0bb124c09f
commit
6af8f0f3f6
@ -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(),
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user