Skip to content

Commit

Permalink
Fix sizing of images example
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 3, 2024
1 parent 234274d commit 8bf498d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/images/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use eframe::egui;
fn main() -> eframe::Result {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_inner_size([600.0, 800.0]),
viewport: egui::ViewportBuilder::default().with_inner_size([400.0, 800.0]),
..Default::default()
};
eframe::run_native(
Expand All @@ -31,7 +31,6 @@ impl eframe::App for MyApp {
ui.add(
egui::Image::new("https://picsum.photos/seed/1.759706314/1024").rounding(10.0),
);

ui.image(egui::include_image!("ferris.svg"));
});
});
Expand Down

0 comments on commit 8bf498d

Please sign in to comment.