Skip to content

Commit

Permalink
docs: clarify get_framebuffer_dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Dec 8, 2018
1 parent 92fa194 commit b9459a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/graphics/gl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pub trait GLGraphicsBackend {

/// Returns the dimensions of the window, or screen, etc in points.
///
/// That are the scaled pixels of the underlying graphics backend.
/// For nested compositors this will respect the scaling of the root compositor.
/// For drawing directly onto hardware this unit will be equal to actual pixels.
/// These are the actual pixels of the underlying graphics backend.
/// For nested compositors you will need to handle the scaling
/// of the root compositor yourself, if you want to.
fn get_framebuffer_dimensions(&self) -> (u32, u32);

/// Returns true if the OpenGL context is the current one in the thread.
Expand Down

0 comments on commit b9459a0

Please sign in to comment.