summaryrefslogtreecommitdiff
path: root/src/cairo-gstate-private.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-06-01 13:13:10 +0000
committerCarl Worth <cworth@cworth.org>2005-06-01 13:13:10 +0000
commit6c62cf76435153c6fdc165d229ee02e52c5c0db5 (patch)
tree36afccbd1aa1882bc8482e18bef7a3e316ed56fb /src/cairo-gstate-private.h
parent707a2c97a1cb709ccf60899576467b898f658481 (diff)
downloadcairo-6c62cf76435153c6fdc165d229ee02e52c5c0db5.tar.gz
Remove unused fields from cairo_gstate_t, (font_family, font_slant, font_weight). Reorder fields to match between declaration and initialization and to put the most problematic fields (surface and source) at the end. No intended changes in functionality.
Diffstat (limited to 'src/cairo-gstate-private.h')
-rw-r--r--src/cairo-gstate-private.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/cairo-gstate-private.h b/src/cairo-gstate-private.h
index 03486ac9c..da3d60ed3 100644
--- a/src/cairo-gstate-private.h
+++ b/src/cairo-gstate-private.h
@@ -80,26 +80,22 @@ struct _cairo_gstate {
int num_dashes;
double dash_offset;
- char *font_family; /* NULL means CAIRO_FONT_FAMILY_DEFAULT; */
- cairo_font_slant_t font_slant;
- cairo_font_weight_t font_weight;
-
cairo_font_face_t *font_face;
cairo_scaled_font_t *scaled_font; /* Specific to the current CTM */
- cairo_surface_t *surface;
-
- cairo_pattern_t *source;
+ cairo_matrix_t font_matrix;
cairo_clip_t clip;
- cairo_matrix_t font_matrix;
-
cairo_matrix_t ctm;
cairo_matrix_t ctm_inverse;
cairo_pen_t pen_regular;
+ cairo_surface_t *surface;
+
+ cairo_pattern_t *source;
+
struct _cairo_gstate *next;
};