From a1b8d2bf47813df7188dacb058ae1c07a92321dd Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sat, 8 Dec 2018 13:49:30 +0100 Subject: [PATCH] docs: clarify get_framebuffer_dimensions --- src/backend/graphics/gl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/graphics/gl.rs b/src/backend/graphics/gl.rs index aa8984d..b50e4ba 100644 --- a/src/backend/graphics/gl.rs +++ b/src/backend/graphics/gl.rs @@ -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.