From f2a48d2a3088159e233f6b8bf5f07ef15ae6ffcc Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 17 Nov 2026 18:39:01 -0800 Subject: [PATCH] Color: Refresh Monitor Profile's reader doc says when a request is dropped A frame that finds Use Monitor Profile for Canvas off drops a waiting request; a request made with the preference on is kept when the preference goes off and on again between two frames. --- apps/vectorcraft/src/display_profile.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/vectorcraft/src/display_profile.rs b/apps/vectorcraft/src/display_profile.rs index 7236b49d7e..ee35a407a7 100644 --- a/apps/vectorcraft/src/display_profile.rs +++ b/apps/vectorcraft/src/display_profile.rs @@ -73,8 +73,9 @@ impl Reader { /// The display to read at `now` when a reading is to start, looked up with `display`. A /// request from Refresh Monitor Profile ([`DisplayProfile::request_read`]) starts one at once, - /// past [`EVERY`] and [`LOOK_EVERY`]; while a reading runs it waits, and with the preference - /// off it is dropped. + /// past [`EVERY`] and [`LOOK_EVERY`]; while a reading runs it waits, and a frame that finds the + /// preference off drops it. A request made with the preference on is kept when the preference + /// goes off and on again between two frames. fn start(&mut self, now: f64, enabled: bool, profile: &DisplayProfile, display: impl FnOnce() -> Option) -> Option> { if !enabled { profile.take_request();