mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
eframe::Frame::info returns a reference (#3301)
* Get a reference to `IntegrationInfo` * Add doc comment * Change `info` to return a reference * Clone integration info * Remove `&` * Clone integration info in another place
This commit is contained in:
@@ -155,7 +155,7 @@ impl BackendPanel {
|
||||
// On web, the browser controls `pixels_per_point`.
|
||||
let integration_controls_pixels_per_point = frame.is_web();
|
||||
if !integration_controls_pixels_per_point {
|
||||
self.pixels_per_point_ui(ui, &frame.info());
|
||||
self.pixels_per_point_ui(ui, frame.info());
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
|
||||
Reference in New Issue
Block a user