mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Updated docs for update calles
This commit is contained in:
parent
abbe3db980
commit
48a41a9f6e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue