mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 11:14:13 +00:00
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.
This commit is contained in:
@@ -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<String>) -> Option<Option<String>> {
|
||||
if !enabled {
|
||||
profile.take_request();
|
||||
|
||||
Reference in New Issue
Block a user