[cairo-commit] cairo/src cairo-font.c, 1.46, 1.47 cairo-ft-font.c, 1.60, 1.61 cairo-glitz-surface.c, 1.39, 1.40 cairo-gstate.c, 1.133, 1.134 cairo-image-surface.c, 1.42, 1.43 cairo-pattern.c, 1.39, 1.40 cairo-pdf-surface.c, 1.37, 1.38 cairo-png.c, 1.12, 1.13 cairo-surface.c, 1.69, 1.70 cairo-win32-font.c, 1.17, 1.18 cairo-win32-surface.c, 1.22, 1.23 cairo-xcb-surface.c, 1.30, 1.31 cairo-xlib-surface.c, 1.73, 1.74 cairoint.h, 1.144, 1.145

Carl Worth commit at pdx.freedesktop.org
Wed Jun 1 13:24:12 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv23356/src

Modified Files:
	cairo-font.c cairo-ft-font.c cairo-glitz-surface.c 
	cairo-gstate.c cairo-image-surface.c cairo-pattern.c 
	cairo-pdf-surface.c cairo-png.c cairo-surface.c 
	cairo-win32-font.c cairo-win32-surface.c cairo-xcb-surface.c 
	cairo-xlib-surface.c cairoint.h 
Log Message:

        * src/cairoint.h:
        * src/cairo-font.c:
        * src/cairo-ft-font.c:
        * src/cairo-glitz-surface.c:
        * src/cairo-gstate.c:
        * src/cairo-image-surface.c:
        * src/cairo-pattern.c:
        * src/cairo-pdf-surface.c:
        * src/cairo-png.c:
        * src/cairo-surface.c:
        * src/cairo-win32-font.c:
        * src/cairo-win32-surface.c:
        * src/cairo-xcb-surface.c:
        * src/cairo-xlib-surface.c: Rename CAIRO_OK to STATUS_OK. No
        intended changes in functionality.


Index: cairo-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-font.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- cairo-font.c	9 May 2005 16:12:52 -0000	1.46
+++ cairo-font.c	1 Jun 2005 20:24:10 -0000	1.47
@@ -395,7 +395,7 @@
 	return NULL;
     }
     status = _cairo_cache_lookup (cache, &key, (void **) &entry, &created_entry);
-    if (CAIRO_OK (status) && !created_entry)
+    if (STATUS_OK (status) && !created_entry)
 	cairo_font_face_reference (&entry->font_face->base);
     
     _unlock_global_simple_cache ();
@@ -586,7 +586,7 @@
     }
     
     status = _cairo_cache_lookup (cache, key, (void **) &inner_entry, &created_entry);
-    if (!CAIRO_OK (status)) {
+    if (!STATUS_OK (status)) {
 	free (entry);
 	return status;
     }
@@ -636,7 +636,7 @@
 						 k->font_matrix,
 						 k->ctm,
 						 &entry->scaled_font);
-    if (!CAIRO_OK (status)) {
+    if (!STATUS_OK (status)) {
 	free (entry);
 	return status;
     }
@@ -727,11 +727,11 @@
     }
     
     status = _cairo_cache_lookup (cache, &key, (void **) &entry, NULL);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
 	cairo_scaled_font_reference (entry->scaled_font);
     
     _unlock_global_font_cache ();
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return NULL;
     
     return entry->scaled_font;
@@ -935,7 +935,7 @@
 
     status = _cairo_scaled_font_font_extents (scaled_font, extents);
 
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
       return status;
     
     _cairo_matrix_compute_scale_factors (&scaled_font->font_matrix,

Index: cairo-ft-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-ft-font.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- cairo-ft-font.c	9 May 2005 23:34:00 -0000	1.60
+++ cairo-ft-font.c	1 Jun 2005 20:24:10 -0000	1.61
@@ -337,11 +337,11 @@
     }
 
     status = _cairo_cache_lookup (cache, &key, (void **) &entry, &created_entry);
-    if (CAIRO_OK (status) && !created_entry)
+    if (STATUS_OK (status) && !created_entry)
 	_cairo_unscaled_font_reference (&entry->unscaled->base);
 
     _unlock_global_ft_cache ();
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return NULL;
 
     return entry->unscaled;
@@ -863,7 +863,7 @@
     _cairo_ft_scaled_font_get_glyph_cache_key (scaled_font, &key);
 
     status = _cairo_utf8_to_ucs4 ((unsigned char*)utf8, -1, &ucs4, num_glyphs);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     face = cairo_ft_scaled_font_lock_face (&scaled_font->base);

Index: cairo-glitz-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-glitz-surface.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- cairo-glitz-surface.c	13 May 2005 06:11:55 -0000	1.39
+++ cairo-glitz-surface.c	1 Jun 2005 20:24:10 -0000	1.40
@@ -1449,7 +1449,7 @@
 
 	    area->state = CAIRO_GLITZ_AREA_DIVIDED;
 	    
-	    if (CAIRO_OK (_cairo_glitz_area_find (area->area[0],
+	    if (STATUS_OK (_cairo_glitz_area_find (area->area[0],
 						  width, height,
 						  kick_out, closure)))
 		return CAIRO_STATUS_SUCCESS;
@@ -1466,7 +1466,7 @@
 		if (area->area[i]->width >= width &&
 		    area->area[i]->height >= height)
 		{
-		    if (CAIRO_OK (_cairo_glitz_area_find (area->area[i],
+		    if (STATUS_OK (_cairo_glitz_area_find (area->area[i],
 							  width, height,
 							  kick_out, closure)))
 			return CAIRO_STATUS_SUCCESS;
@@ -1500,7 +1500,7 @@
 	
 	area->closure = NULL;
 	area->state   = CAIRO_GLITZ_AREA_AVAILABLE;
-	if (CAIRO_OK (_cairo_glitz_area_find (area, width, height,
+	if (STATUS_OK (_cairo_glitz_area_find (area, width, height,
 					      TRUE, closure)))
 	    return CAIRO_STATUS_SUCCESS;
 	

Index: cairo-gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-gstate.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- cairo-gstate.c	1 Jun 2005 20:19:52 -0000	1.133
+++ cairo-gstate.c	1 Jun 2005 20:24:10 -0000	1.134
@@ -364,7 +364,7 @@
     cairo_status_t  status;
     
     status = _cairo_surface_get_extents (gstate->target, rectangle);
-    if (!CAIRO_OK(status))
+    if (!STATUS_OK(status))
 	return status;
     /* check path extents here */
     
@@ -784,11 +784,11 @@
     cairo_traps_t traps;
 
     status = _cairo_gstate_set_clip (gstate);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     status = _cairo_gstate_get_clip_extents (gstate, &rectangle);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     box.p1.x = _cairo_fixed_from_int (rectangle.x);
@@ -796,7 +796,7 @@
     box.p2.x = _cairo_fixed_from_int (rectangle.x + rectangle.width);
     box.p2.y = _cairo_fixed_from_int (rectangle.y + rectangle.height);
     status = _cairo_traps_init_box (&traps, &box);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
     
     _cairo_gstate_clip_and_composite_trapezoids (gstate,
@@ -884,7 +884,7 @@
 	cairo_status_t status;
     
 	status = _region_new_from_rect (&gstate->clip.surface_rect, &clip_rect);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	
 	if (pixman_region_intersect (region,
@@ -894,7 +894,7 @@
 
 	pixman_region_destroy (clip_rect);
 
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
     }
 
@@ -926,7 +926,7 @@
     int mask_x, mask_y;
 
     status = _cairo_gstate_set_clip (gstate);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     _get_mask_extents (gstate, mask, &extents);
@@ -950,13 +950,13 @@
 					   0,             0,
 					   0,             0,
 					   extents.width, extents.height);
-	if (!CAIRO_OK (status)) {
+	if (!STATUS_OK (status)) {
 	    cairo_surface_destroy (intermediate);
 	    return status;
 	}
 	
 	status = _cairo_gstate_combine_clip_surface (gstate, intermediate, &extents);
-	if (!CAIRO_OK (status)) {
+	if (!STATUS_OK (status)) {
 	    cairo_surface_destroy (intermediate);
 	    return status;
 	}
@@ -1001,7 +1001,7 @@
 	return CAIRO_STATUS_SUCCESS;
 
     status = _cairo_gstate_set_clip (gstate);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     _cairo_pen_init (&gstate->pen_regular, gstate->line_width / 2.0, gstate);
@@ -1117,7 +1117,7 @@
     cairo_status_t status;
     
     status = _cairo_gstate_intersect_clip (gstate, trap_region);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     _region_rect_extents (trap_region, extents);
@@ -1143,7 +1143,7 @@
 	cairo_status_t status;
 	
 	status = _region_new_from_rect (extents, &intersection);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	
 	if (pixman_region_intersect (intersection,
@@ -1155,7 +1155,7 @@
 
 	pixman_region_destroy (intersection);
 
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
     }
 
@@ -1187,14 +1187,14 @@
     if (num_rects > 1) {
 	
 	status = _cairo_surface_can_clip_region (gstate->target);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	
 	clip_serial = _cairo_surface_allocate_clip_serial (gstate->target);
 	status = _cairo_surface_set_clip_region (gstate->target, 
 						 trap_region,
 						 clip_serial);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
     }
     
@@ -1291,11 +1291,11 @@
 						  traps->num_traps);
     _cairo_pattern_fini (&pattern.base);
     
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	goto out;
 
     status = _cairo_gstate_combine_clip_surface (gstate, intermediate, extents);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	goto out;
     
     _cairo_pattern_init_for_surface (&intermediate_pattern, intermediate);
@@ -1409,7 +1409,7 @@
 	return CAIRO_STATUS_NO_TARGET_SURFACE;
 
     status = _cairo_traps_extract_region (traps, &trap_region);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     if (trap_region)
@@ -1417,7 +1417,7 @@
     else
 	status = _clip_and_compute_extents_arbitrary (gstate, traps, &extents);
 	
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	goto out;
     
     if (_cairo_rectangle_empty (&extents))
@@ -1473,7 +1473,7 @@
     cairo_traps_t traps;
 
     status = _cairo_gstate_set_clip (gstate);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     status = _cairo_surface_fill_path (gstate->operator,
@@ -1642,7 +1642,7 @@
 
     _cairo_traps_init (&traps);
     status = _cairo_path_fixed_fill_to_traps (path, gstate, &traps);
-    if (!CAIRO_OK (status)) {
+    if (!STATUS_OK (status)) {
 	_cairo_traps_fini (&traps);
 	return status;
     }
@@ -1650,13 +1650,13 @@
     status = _cairo_surface_can_clip_region (gstate->target);
     
     if (status != CAIRO_INT_STATUS_UNSUPPORTED) {
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
     
 	/* Check to see if we can represent these traps as a PixRegion. */
     
 	status = _cairo_traps_extract_region (&traps, &region);
-	if (!CAIRO_OK (status)) {
+	if (!STATUS_OK (status)) {
 	    _cairo_traps_fini (&traps);
 	    return status;
 	}
@@ -2001,7 +2001,7 @@
     cairo_rectangle_t extents;
 
     status = _cairo_gstate_set_clip (gstate);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     status = _cairo_gstate_ensure_font (gstate);

Index: cairo-image-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-image-surface.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- cairo-image-surface.c	13 May 2005 06:11:55 -0000	1.42
+++ cairo-image-surface.c	1 Jun 2005 20:24:10 -0000	1.43
@@ -518,12 +518,12 @@
 	return status;
     
     status = _cairo_image_surface_set_attributes (src, &src_attr);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
     {
 	if (mask)
 	{
 	    status = _cairo_image_surface_set_attributes (mask, &mask_attr);
-	    if (CAIRO_OK (status))
+	    if (STATUS_OK (status))
 		pixman_composite (_pixman_operator (operator),
 				  src->pixman_image,
 				  mask->pixman_image,
@@ -621,7 +621,7 @@
     /* XXX: The pixman_trapezoid_t cast is evil and needs to go away
      * somehow. */
     status = _cairo_image_surface_set_attributes (src, &attributes);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
 	pixman_composite_trapezoids (_pixman_operator (operator),
 				     src->pixman_image,
 				     dst->pixman_image,

Index: cairo-pattern.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-pattern.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- cairo-pattern.c	26 May 2005 18:35:46 -0000	1.39
+++ cairo-pattern.c	1 Jun 2005 20:24:10 -0000	1.40
@@ -1038,7 +1038,7 @@
 	status = _cairo_surface_acquire_source_image (pattern->surface,
 						      &image,
 						      &attr->extra);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 
 	*out = &image->base;

Index: cairo-pdf-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-pdf-surface.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- cairo-pdf-surface.c	17 May 2005 19:40:55 -0000	1.37
+++ cairo-pdf-surface.c	1 Jun 2005 20:24:10 -0000	1.38
@@ -1225,7 +1225,7 @@
 
     src = pattern->surface;
     status = _cairo_surface_acquire_source_image (src, &image, &image_extra);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     id = emit_image_data (dst->document, image);
@@ -1400,7 +1400,7 @@
     }
 
     status = _cairo_surface_acquire_source_image (pattern->surface, &image, &image_extra);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return;
 
     _cairo_pdf_document_close_stream (document);

Index: cairo-png.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-png.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cairo-png.c	10 May 2005 19:42:32 -0000	1.12
+++ cairo-png.c	1 Jun 2005 20:24:10 -0000	1.13
@@ -212,7 +212,7 @@
   
     status = write_png (surface, stdio_write_func, fp);
 
-    if (fclose (fp) && CAIRO_OK (status))
+    if (fclose (fp) && STATUS_OK (status))
 	status = CAIRO_STATUS_WRITE_ERROR;
 
     return status;
@@ -229,7 +229,7 @@
     struct png_write_closure_t *png_closure;
 
     png_closure = png_get_io_ptr (png);
-    if (!CAIRO_OK (png_closure->write_func (png_closure->closure, data, size)))
+    if (!STATUS_OK (png_closure->write_func (png_closure->closure, data, size)))
 	png_error(png, "Write Error");
 }
 
@@ -435,7 +435,7 @@
     struct png_read_closure_t *png_closure;
 
     png_closure = png_get_io_ptr (png);
-    if (!CAIRO_OK (png_closure->read_func (png_closure->closure, data, size)))
+    if (!STATUS_OK (png_closure->read_func (png_closure->closure, data, size)))
 	png_error(png, "Read Error");
 }
 

Index: cairo-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-surface.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- cairo-surface.c	26 May 2005 18:35:46 -0000	1.69
+++ cairo-surface.c	1 Jun 2005 20:24:10 -0000	1.70
@@ -472,7 +472,7 @@
     cairo_status_t status;
 
     status = _fallback_init (&state, dst, dst_x, dst_y, width, height);
-    if (!CAIRO_OK (status) || !state.image)
+    if (!STATUS_OK (status) || !state.image)
 	return status;
 
     state.image->base.backend->composite (operator, src, mask,
@@ -584,7 +584,7 @@
     }
 
     status = _fallback_init (&state, surface, x1, y1, x2 - x1, y2 - y1);
-    if (!CAIRO_OK (status) || !state.image)
+    if (!STATUS_OK (status) || !state.image)
 	return status;
 
     /* If the fetched image isn't at 0,0, we need to offset the rectangles */
@@ -677,7 +677,7 @@
     int i;
 
     status = _fallback_init (&state, dst, dst_x, dst_y, width, height);
-    if (!CAIRO_OK (status) || !state.image)
+    if (!STATUS_OK (status) || !state.image)
 	return status;
 
     /* If the destination image isn't at 0,0, we need to offset the trapezoids */
@@ -842,13 +842,13 @@
 #if 0
     if (surface->backend->clip_path) {
 	status = surface->backend->clip_path (surface, NULL);
-	if (!CAIRO_OK(status))
+	if (!STATUS_OK(status))
 	    return status;
     }
 #endif
     if (surface->backend->set_clip_region != NULL) {
 	status = surface->backend->set_clip_region (surface, NULL);
-	if (!CAIRO_OK(status))
+	if (!STATUS_OK(status))
 	    return status;
     }
     return CAIRO_STATUS_SUCCESS;

Index: cairo-win32-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-win32-font.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- cairo-win32-font.c	11 May 2005 23:01:56 -0000	1.17
+++ cairo-win32-font.c	1 Jun 2005 20:24:10 -0000	1.18
@@ -154,7 +154,7 @@
 			1.0 / scaled_font->logical_scale, 1.0 / scaled_font->logical_scale);
 
     scaled_font->device_to_logical = scaled_font->logical_to_device;
-    if (!CAIRO_OK (cairo_matrix_invert (&scaled_font->device_to_logical)))
+    if (!STATUS_OK (cairo_matrix_invert (&scaled_font->device_to_logical)))
       cairo_matrix_init_identity (&scaled_font->device_to_logical);
 }
 
@@ -367,7 +367,7 @@
 	return _cairo_win32_print_gdi_error ("_cairo_win32_scaled_font_select_unscaled_font");
 
     status = _win32_scaled_font_set_identity_transform (hdc);
-    if (!CAIRO_OK (status)) {
+    if (!STATUS_OK (status)) {
 	SelectObject (hdc, old_hfont);
 	return status;
     }
@@ -399,7 +399,7 @@
     cairo_status_t status;
 
     status = _cairo_utf8_to_utf16 (family, -1, &face_name, &face_name_len);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     if (face_name_len > LF_FACESIZE - 1) {
@@ -496,7 +496,7 @@
     HDC hdc = NULL;
 
     status = _cairo_utf8_to_utf16 (utf8, -1, &utf16, &n16);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	return status;
 
     gcp_results.lStructSize = sizeof (GCP_RESULTS);
@@ -518,7 +518,7 @@
     }
 
     status = cairo_win32_scaled_font_select_font (&scaled_font->base, hdc);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	goto FAIL1;
     
     while (TRUE) {
@@ -610,7 +610,7 @@
 	 * from the GDI in logical space, then convert back to font space
 	 */
 	status = cairo_win32_scaled_font_select_font (&scaled_font->base, hdc);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	GetTextMetrics (hdc, &metrics);
 	cairo_win32_scaled_font_done_font (&scaled_font->base);
@@ -629,7 +629,7 @@
 	 * avoid them.
 	 */
 	status = _cairo_win32_scaled_font_select_unscaled_font (&scaled_font->base, hdc);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	GetTextMetrics (hdc, &metrics);
 	_cairo_win32_scaled_font_done_unscaled_font (&scaled_font->base);
@@ -672,7 +672,7 @@
 	 * from the GDI in device space and convert to font space.
 	 */
 	status = cairo_win32_scaled_font_select_font (&scaled_font->base, hdc);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 	GetGlyphOutlineW (hdc, glyphs[0].index, GGO_METRICS | GGO_GLYPH_INDEX,
 			  &metrics, 0, NULL, &matrix);
@@ -745,7 +745,7 @@
 	    return CAIRO_STATUS_NO_MEMORY;
 
 	status = cairo_win32_scaled_font_select_font (&scaled_font->base, hdc);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    return status;
 
 	for (i = 0; i < num_glyphs; i++) {
@@ -844,7 +844,7 @@
 	
 	if (logical_y != state->last_y) {
 	    cairo_status_t status = _flush_glyphs (state);
-	    if (!CAIRO_OK (status))
+	    if (!STATUS_OK (status))
 		return status;
 	    state->start_x = logical_x;
 	}
@@ -890,7 +890,7 @@
 	return _cairo_win32_print_gdi_error ("_draw_glyphs_on_surface:SaveDC");
 
     status = cairo_win32_scaled_font_select_font (&scaled_font->base, surface->dc);
-    if (!CAIRO_OK (status))
+    if (!STATUS_OK (status))
 	goto FAIL1;
 
     SetTextColor (surface->dc, color);
@@ -902,7 +902,7 @@
     for (i = 0; i < num_glyphs; i++) {
 	status = _add_glyph (&state, glyphs[i].index,
 			     glyphs[i].x - x_offset, glyphs[i].y - y_offset);
-	if (!CAIRO_OK (status))
+	if (!STATUS_OK (status))
 	    goto FAIL2;
     }
 
@@ -1231,7 +1231,7 @@
     }
 
     status = _win32_scaled_font_set_world_transform ((cairo_win32_scaled_font_t *)scaled_font, hdc);
-    if (!CAIRO_OK (status)) {
+    if (!STATUS_OK (status)) {
 	SetGraphicsMode (hdc, old_mode);
 	SelectObject (hdc, old_hfont);
 	return status;

Index: cairo-win32-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-win32-surface.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cairo-win32-surface.c	11 May 2005 23:32:44 -0000	1.22
+++ cairo-win32-surface.c	1 Jun 2005 20:24:10 -0000	1.23
@@ -404,7 +404,7 @@
     status = _cairo_win32_surface_get_subimage (abstract_surface, 0, 0,
 						surface->clip_rect.width,
 						surface->clip_rect.height, &local);
-    if (CAIRO_OK (status)) {
+    if (STATUS_OK (status)) {
 	*image_out = (cairo_image_surface_t *)local->image;
 	*image_extra = local;
     }
@@ -475,7 +475,7 @@
     status = _cairo_win32_surface_get_subimage (abstract_surface, 
 						x1, y1, x2 - x1, y2 - y1,
 						&local);
-    if (CAIRO_OK (status)) {
+    if (STATUS_OK (status)) {
 	*image_out = (cairo_image_surface_t *)local->image;
 	*image_extra = local;
 	

Index: cairo-xcb-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-xcb-surface.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cairo-xcb-surface.c	26 May 2005 18:35:46 -0000	1.30
+++ cairo-xcb-surface.c	1 Jun 2005 20:24:10 -0000	1.31
@@ -850,12 +850,12 @@
 	return status;
     
     status = _cairo_xcb_surface_set_attributes (src, &src_attr);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
     {
 	if (mask)
 	{
 	    status = _cairo_xcb_surface_set_attributes (mask, &mask_attr);
-	    if (CAIRO_OK (status))
+	    if (STATUS_OK (status))
 		XCBRenderComposite (dst->dpy,
 				    _render_operator (operator),
 				    src->picture,
@@ -966,7 +966,7 @@
     /* XXX: _format_from_cairo is slow. should cache something. */
     render_format = _format_from_cairo (dst->dpy, CAIRO_FORMAT_A8),
     status = _cairo_xcb_surface_set_attributes (src, &attributes);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
 	XCBRenderTrapezoids (dst->dpy,
 			     _render_operator (operator),
 			     src->picture, dst->picture,

Index: cairo-xlib-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-xlib-surface.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- cairo-xlib-surface.c	26 May 2005 18:35:46 -0000	1.73
+++ cairo-xlib-surface.c	1 Jun 2005 20:24:10 -0000	1.74
@@ -820,11 +820,11 @@
     
     status = _cairo_xlib_surface_set_attributes (src, &src_attr);
 
-    if (CAIRO_OK (status)) {
+    if (STATUS_OK (status)) {
 	_cairo_xlib_surface_ensure_dst_picture (dst);
 	if (mask) {
 	    status = _cairo_xlib_surface_set_attributes (mask, &mask_attr);
-	    if (CAIRO_OK (status))
+	    if (STATUS_OK (status))
 		XRenderComposite (dst->dpy,
 				  _render_operator (operator),
 				  src->src_picture,
@@ -930,7 +930,7 @@
     /* XXX: The XTrapezoid cast is evil and needs to go away somehow. */
     _cairo_xlib_surface_ensure_dst_picture (dst);
     status = _cairo_xlib_surface_set_attributes (src, &attributes);
-    if (CAIRO_OK (status))
+    if (STATUS_OK (status))
 	XRenderCompositeTrapezoids (dst->dpy,
 				    _render_operator (operator),
 				    src->src_picture, dst->dst_picture,

Index: cairoint.h
===================================================================
RCS file: /cvs/cairo/cairo/src/cairoint.h,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- cairoint.h	26 May 2005 18:35:46 -0000	1.144
+++ cairoint.h	1 Jun 2005 20:24:10 -0000	1.145
@@ -191,7 +191,7 @@
     CAIRO_INT_STATUS_UNSUPPORTED
 } cairo_int_status_t;
 
-#define CAIRO_OK(status) ((status) == CAIRO_STATUS_SUCCESS)
+#define STATUS_OK(status) ((status) == CAIRO_STATUS_SUCCESS)
 
 typedef enum cairo_direction {
     CAIRO_DIRECTION_FORWARD,




More information about the cairo-commit mailing list