Skip to content

Commit

Permalink
👆(Update): Upgrade eframe and related dependencies to version 0.24.0,…
Browse files Browse the repository at this point in the history
… adjust viewport settings in main.rs

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Dec 20, 2023
1 parent e6aac3f commit 175dddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ authors = ["W-Mai", "Benign X"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
egui_plot = "0.23.0"
egui_extras = "0.23.0"
egui_code_editor = "0.1.8"
egui_plot = "0.24.0"
egui_extras = "0.24.0"
egui_code_editor = "0.1.9"

log = "0.4.19"

Expand All @@ -22,15 +22,15 @@ dyn-clone = "1.0.16"

# native:
[target.'cfg(all(not(target_arch = "wasm32"), platform = "macos"))'.dependencies]
eframe = { version = "0.23.0", default-features = false, features = [
eframe = { version = "0.24.0", default-features = false, features = [
"__screenshot",
"default_fonts",
"wgpu",
] }
env_logger = "0.10"

[target.'cfg(all(not(target_arch = "wasm32"), not(platform = "macos")))'.dependencies]
eframe = { version = "0.23.0", default-features = false, features = [
eframe = { version = "0.24.0", default-features = false, features = [
"__screenshot",
"default_fonts",
"glow",
Expand All @@ -39,7 +39,7 @@ env_logger = "0.10"

# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
eframe = { version = "0.23.0", default-features = false, features = [
eframe = { version = "0.24.0", default-features = false, features = [
"__screenshot",
"default_fonts",
"glow",
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use vegravis::MainApp;
fn main() -> Result<(), eframe::Error> {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let options = eframe::NativeOptions {
initial_window_size: Some(eframe::egui::vec2(1440.0, 960.0)),
viewport: eframe::egui::ViewportBuilder::default().with_inner_size([1440.0, 960.0]),
..Default::default()
};
eframe::run_native(
Expand Down

0 comments on commit 175dddd

Please sign in to comment.