summaryrefslogtreecommitdiff
path: root/src/cairo-gstate-private.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-08-24 01:39:56 +0000
committerKeith Packard <keithp@keithp.com>2005-08-24 01:39:56 +0000
commite4166936b9d2e1197efcdc378a6113a6c68a41ed (patch)
tree4589c6a694064e174106f225f7748246f164ab53 /src/cairo-gstate-private.h
parent77a0ae7439bba5b442fc7c3bee5eb61ebfe24abb (diff)
downloadcairo-e4166936b9d2e1197efcdc378a6113a6c68a41ed.tar.gz
Add device_x_scale and device_y_scale to surface so that the coordinate system seen by the backend can differ from the nominal device coordinate space used by the application.
Useful for printer backends where the device coordinate space should be in pixels while the user visible device space is in points. There is no API to set these values; the backends using this functionality should do that themselves before the first cairo_t is created. reviewed by: cworth
Diffstat (limited to 'src/cairo-gstate-private.h')
-rw-r--r--src/cairo-gstate-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-gstate-private.h b/src/cairo-gstate-private.h
index 489afdba4..cf4a22156 100644
--- a/src/cairo-gstate-private.h
+++ b/src/cairo-gstate-private.h
@@ -63,14 +63,14 @@ struct _cairo_gstate {
cairo_clip_t clip;
+ cairo_surface_t *target;
+
cairo_matrix_t ctm;
cairo_matrix_t ctm_inverse;
cairo_matrix_t source_ctm_inverse; /* At the time ->source was set */
cairo_pen_t pen_regular;
- cairo_surface_t *target;
-
cairo_pattern_t *source;
struct _cairo_gstate *next;