Doc proofreading
This commit is contained in:
parent
1140b484cd
commit
93050e2683
|
@ -10,9 +10,9 @@
|
|||
//! You need to instanciate an `Output` for each output global you want
|
||||
//! to advertize to clients.
|
||||
//!
|
||||
//! Just insert it in your event loop using the `Output::new(..)` method.
|
||||
//! It returns a state token that gives you access to the `Output` in order
|
||||
//! to change it if needed (if the current resolution mode changes for example),
|
||||
//! Just add it to your Display using the `Output::new(..)` method.
|
||||
//! You can use the returned `Output` to change the properties of your
|
||||
//! output (if the current resolution mode changes for example),
|
||||
//! it'll automatically forward any changes to the clients.
|
||||
//!
|
||||
//! ```
|
||||
|
@ -23,7 +23,7 @@
|
|||
//!
|
||||
//! # fn main() {
|
||||
//! # let (mut display, event_loop) = wayland_server::Display::new();
|
||||
//! // Insert the Output with given name and physical properties
|
||||
//! // Create the Output with given name and physical properties
|
||||
//! let (output, _output_global) = Output::new(
|
||||
//! &mut display, // the display
|
||||
//! event_loop.token(), // the LoopToken
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//! [the similar helpers](https://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-shm.c)
|
||||
//! of the wayland C libraries.
|
||||
//!
|
||||
//! To use it, first add a `ShmGlobal` to your event loop, specifying the formats
|
||||
//! To use it, first add a `ShmGlobal` to your display, specifying the formats
|
||||
//! you want to support (ARGB8888 and XRGB8888 are always considered as supported,
|
||||
//! as specified by the wayland protocol) and obtain its `ShmToken`.
|
||||
//!
|
||||
|
|
Loading…
Reference in New Issue