summaryrefslogtreecommitdiff
path: root/examples/images/src/main.rs
diff options
context:
space:
mode:
authorEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2023-09-26 21:17:43 +0200
committerGitHub <noreply@github.com>2023-09-26 21:17:43 +0200
commitdff52eddfdd273a9e46590f158bc98e29fa4207f (patch)
treef59ee2b79cd1e420fb564a8053c14f082e65d364 /examples/images/src/main.rs
parent23ce4e70caea7feb48909311775b0de5476248b1 (diff)
README.md: new images, better text (#3392)
* Update images in README.md * Add ferris image to hello_world example * Clean up and improve README.md, with top-level link to Rerun * Move sections around
Diffstat (limited to 'examples/images/src/main.rs')
-rw-r--r--examples/images/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/images/src/main.rs b/examples/images/src/main.rs
index 87a680d1..5c1c6a4e 100644
--- a/examples/images/src/main.rs
+++ b/examples/images/src/main.rs
@@ -12,7 +12,7 @@ fn main() -> Result<(), eframe::Error> {
"Image Viewer",
options,
Box::new(|cc| {
- // The following call is needed to load images when using `ui.image` and `egui::Image`:
+ // This gives us image support:
egui_extras::install_image_loaders(&cc.egui_ctx);
Box::<MyApp>::default()
}),