fix: macos startup

This commit is contained in:
Kieran 2024-11-02 16:15:36 +00:00
parent 7e67c3d8e7
commit 095d69534d
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@ async fn main() {
egui_video::ffmpeg_sys_the_third::av_log_set_callback(Some(av_log_redirect));
}
let mut options = eframe::NativeOptions::default();
options.viewport = ViewportBuilder::default().with_inner_size(Vec2::new(1280., 720.));
options.viewport = ViewportBuilder::default().with_inner_size(Vec2::new(1300., 900.));
let data_path = PathBuf::from("./.data");
let config = DesktopApp::new(data_path.clone());

View File

@ -17,7 +17,9 @@ use log::log;
use std::ffi::CStr;
use std::ptr;
#[cfg(not(target_os = "android"))]
#[cfg(target_os = "macos")]
type VaList = egui_video::ffmpeg_sys_the_third::va_list;
#[cfg(target_os = "linux")]
type VaList = *mut egui_video::ffmpeg_sys_the_third::__va_list_tag;
#[cfg(target_os = "android")]
type VaList = [u64; 4];