Skip to content

Commit

Permalink
change eframe options
Browse files Browse the repository at this point in the history
  • Loading branch information
fralonra committed Aug 3, 2023
1 parent e308046 commit 06992bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/bin/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ use ppd_editor::editor;
fn main() {
env_logger::init();

let native_options = eframe::NativeOptions::default();
let native_options = eframe::NativeOptions {
centered: true,
initial_window_size: Some(eframe::epaint::vec2(1200.0, 700.0)),
..Default::default()
};

eframe::run_native(
editor::APP_TITLE,
Expand Down
6 changes: 5 additions & 1 deletion src/bin/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ use ppd_editor::viewer;
fn main() {
env_logger::init();

let native_options = eframe::NativeOptions::default();
let native_options = eframe::NativeOptions {
centered: true,
initial_window_size: Some(eframe::epaint::vec2(1200.0, 700.0)),
..Default::default()
};

eframe::run_native(
viewer::APP_TITLE,
Expand Down

0 comments on commit 06992bc

Please sign in to comment.