mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Some code cleanup
This commit is contained in:
@@ -205,7 +205,7 @@ impl WidgetGallery {
|
||||
}
|
||||
|
||||
fn example_plot() -> egui::plot::Plot {
|
||||
let n = 512;
|
||||
let n = 128;
|
||||
let curve = egui::plot::Curve::from_values_iter((0..=n).map(|i| {
|
||||
use std::f64::consts::TAU;
|
||||
let x = egui::remap(i as f64, 0.0..=(n as f64), -TAU..=TAU);
|
||||
|
||||
@@ -64,14 +64,7 @@ impl epi::App for WrapApp {
|
||||
|
||||
fn warm_up_enabled(&self) -> bool {
|
||||
// The example windows use a lot of emojis. Pre-cache them by running one frame where everything is open
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
false // debug
|
||||
}
|
||||
#[cfg(not(debug_assertions))]
|
||||
{
|
||||
true // release
|
||||
}
|
||||
cfg!(not(debug_assertions))
|
||||
}
|
||||
|
||||
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
|
||||
|
||||
Reference in New Issue
Block a user