[cairo-commit] 2 commits - src/cairo-surface.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 17 15:19:54 UTC 2023


 src/cairo-surface.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ec107d5698e4b9775e63d85a8bdd9d718cb223be
Merge: 745c3717a 089cfb555
Author: Emmanuele Bassi <ebassi at gmail.com>
Date:   Tue Jan 17 15:19:52 2023 +0000

    Merge branch 'fix-device-scaling-doc-comments' into 'master'
    
    Fix docs for cairo_surface_[sg]et_device_scale
    
    Closes #616
    
    See merge request cairo/cairo!396

commit 089cfb555873877c1054b1b3589c34f459add857
Author: Uli Schlachter <psychon at znc.in>
Date:   Fri Jan 6 18:00:40 2023 +0100

    Fix docs for cairo_surface_[sg]et_device_scale
    
    Fixes: https://gitlab.freedesktop.org/cairo/cairo/-/issues/616
    Signed-off-by: Uli Schlachter <psychon at znc.in>

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index 399958d02..fd661221b 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -1782,7 +1782,7 @@ slim_hidden_def (cairo_surface_mark_dirty_rectangle);
  * by the CTM when drawing to @surface. One common use for this is to
  * render to very high resolution display devices at a scale factor, so
  * that code that assumes 1 pixel will be a certain size will still work.
- * Setting a transformation via cairo_translate() isn't
+ * Setting a transformation via cairo_scale() isn't
  * sufficient to do this, since functions like
  * cairo_device_to_user() will expose the hidden scale.
  *
@@ -1834,7 +1834,7 @@ slim_hidden_def (cairo_surface_set_device_scale);
  * @x_scale: the scale in the X direction, in device units
  * @y_scale: the scale in the Y direction, in device units
  *
- * This function returns the previous device offset set by
+ * This function returns the previous device scale set by
  * cairo_surface_set_device_scale().
  *
  * Since: 1.14


More information about the cairo-commit mailing list