From 48a41a9f6ea0d2b1723227fa0c2b9e2e1dc7b49c Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 27 Mar 2022 09:55:46 +0200 Subject: [PATCH] Updated docs for update calles --- src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index aeb100b..8fcb8e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -306,7 +306,8 @@ impl Window { /// The upper 8-bits are ignored, the next 8-bits are for the red channel, the next 8-bits /// afterwards for the green channel, and the lower 8-bits for the blue channel. /// - /// Notice that the buffer needs to be at least the size of the created window. + /// Notice that the buffer needs to be at least the size of the created window. Also only one of + /// `update_with_buffer` or `update` should be called for updating a single window. /// /// # Examples /// @@ -365,6 +366,10 @@ impl Window { /// pressing the close button on the window) It's up to the user to make sure that this is /// being checked and take action depending on the state. /// + /// Notice that when using this function then `update_with_buffer` should not be called for the same window. + /// Only one of the functions should be used. + /// + /// /// # Examples /// /// ```no_run