From 636b2a0b8543c9658c6762e4b57d769e799548a2 Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Fri, 31 May 2024 16:37:49 +0000 Subject: [PATCH] Cleanup, Comments, formatting --- crates/eframe/src/epi.rs | 2 +- crates/egui-wgpu/src/renderer.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/eframe/src/epi.rs b/crates/eframe/src/epi.rs index ac8ba89287e..52079dec7e7 100644 --- a/crates/eframe/src/epi.rs +++ b/crates/eframe/src/epi.rs @@ -371,7 +371,7 @@ pub struct NativeOptions { pub persistence_path: Option, /// Controls whether colors should be dithered to minimize banding. - /// Default to true. + /// Defaults to true. pub dithering: bool, } diff --git a/crates/egui-wgpu/src/renderer.rs b/crates/egui-wgpu/src/renderer.rs index 3dd03f7a3f5..016af3f4477 100644 --- a/crates/egui-wgpu/src/renderer.rs +++ b/crates/egui-wgpu/src/renderer.rs @@ -142,6 +142,7 @@ struct UniformBuffer { impl PartialEq for UniformBuffer { fn eq(&self, other: &Self) -> bool { self.screen_size_in_points == other.screen_size_in_points + && self.dithering == other.dithering } }