From d45b3168db2362eaaa8ee29fc653509bc8f67e65 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 5 Sep 2008 06:58:56 +0100 Subject: [ps] Use a color_t rather than open-code. Simplify the code by tracking the current solid color with a cairo_color_t. --- src/cairo-ps-surface-private.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cairo-ps-surface-private.h') diff --git a/src/cairo-ps-surface-private.h b/src/cairo-ps-surface-private.h index 79ac983a..e78833d0 100644 --- a/src/cairo-ps-surface-private.h +++ b/src/cairo-ps-surface-private.h @@ -72,10 +72,7 @@ typedef struct cairo_ps_surface { cairo_bool_t use_string_datasource; cairo_bool_t current_pattern_is_solid_color; - double current_color_red; - double current_color_green; - double current_color_blue; - double current_color_alpha; + cairo_color_t current_color; int num_pages; -- cgit v1.2.3