summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-02-13 16:45:57 -0800
committerCarl Worth <cworth@cworth.org>2006-02-13 16:45:57 -0800
commit7146e2fc48df28d462ddeab81dc3c55bee4a7527 (patch)
tree0c0884e9a778805a939bf0997461bec0e7ca5271
parent0f1b69b6ddd7714e03bd98f5c983c5c8bad9f27e (diff)
parenteff1670123efce23f09d8015a9db00a9b7ae98a5 (diff)
Remove pixman from SNAPSHOT_0_1_22SNAPSHOT_0_1_22
-rw-r--r--BUGS6
-rw-r--r--ChangeLog18
-rw-r--r--NEWS5
-rw-r--r--configure.in4
-rw-r--r--src/cairo-image-surface.c4
-rw-r--r--src/cairo.h13
-rw-r--r--src/cairo_image_surface.c4
-rw-r--r--src/cairo_png_surface.c8
8 files changed, 43 insertions, 19 deletions
diff --git a/BUGS b/BUGS
index 07e0ad8d1..cbeacccd9 100644
--- a/BUGS
+++ b/BUGS
@@ -53,3 +53,9 @@ cairo_show_text is not updating the current point by the string's advance values
--
Caps are added only to the last subpath in a complex path.
+
+--
+
+ref_counts will go negative if destroy is called with ref_count ==
+0. We noticed this is cairo_surface.c but it likely happens in several
+places.
diff --git a/ChangeLog b/ChangeLog
index 7aa3d6aca..00a3f762c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2004-04-16 Carl Worth <cworth@isi.edu>
+
+ * NEWS: Added notes for snapshot 0.1.22.
+
+ * configure.in: Now depends on libpixman 0.1.1.
+ Bump version to 0.1.22.
+
+ * src/cairo_image_surface.c (_create_pixman_format): Track pixman
+ fixes to PIXMAN_FORMAT_NAME_*.
+
+ * src/cairo_png_surface.c (cairo_png_surface_create): Explicitly
+ add cases for all enum values to eliminate compiler warnings.
+
+ * src/cairo.h: Remove proposal for surface_clip interface as
+ cairo_clip should be able to cover this case now.
+
+ * BUGS: Added bug concerning negative ref_counts.
+
2004-04-09 David Reveman <c99drn@cs.umu.se>
* NEWS: Added notes for snapshot 0.1.21.
diff --git a/NEWS b/NEWS
index cbb119003..4ca426f65 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Snapshot 0.1.22 (2004-04-16 Carl Worth <cworth@isi.edu>)
+========================================================
+Cairo was updated to track the changes in libpixman, and now depends
+on libpixman version 0.1.1.
+
Snapshot 0.1.21 (2004-04-09 David Reveman <c99drn@cs.umu.se>)
=============================================================
New OpenGL backend
diff --git a/configure.in b/configure.in
index 09e6a9771..674981551 100644
--- a/configure.in
+++ b/configure.in
@@ -3,7 +3,7 @@ AC_INIT(src/cairo.h)
dnl ===========================================================================
# Package version number, (as distinct from shared library version)
-CAIRO_VERSION=0.1.21
+CAIRO_VERSION=0.1.22
# libtool shared library version
@@ -162,7 +162,7 @@ AC_SUBST(GL_REQUIRES)
dnl ===========================================================================
PKG_CHECK_MODULES(FONTCONFIG, fontconfig)
-PKG_CHECK_MODULES(CAIRO, libpixman >= 0.1.0)
+PKG_CHECK_MODULES(CAIRO, libpixman >= 0.1.1)
# Test for freetype2 separate from pkg-config since at least up to
# 2003-06-07, there was no freetype2.pc in the release.
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index a11a07eed..2b52e5b21 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -112,11 +112,11 @@ _create_pixman_format (cairo_format_t format)
return pixman_format_create (PIXMAN_FORMAT_NAME_A8);
break;
case CAIRO_FORMAT_RGB24:
- return pixman_format_create (PIXMAN_FORMAT_NAME_RG_B24);
+ return pixman_format_create (PIXMAN_FORMAT_NAME_RGB24);
break;
case CAIRO_FORMAT_ARGB32:
default:
- return pixman_format_create (PIXMAN_FORMAT_NAME_AR_GB32);
+ return pixman_format_create (PIXMAN_FORMAT_NAME_ARGB32);
break;
}
}
diff --git a/src/cairo.h b/src/cairo.h
index 33ce402ee..a5cb20cd2 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -636,19 +636,6 @@ cairo_surface_reference (cairo_surface_t *surface);
void
cairo_surface_destroy (cairo_surface_t *surface);
-/* XXX: NYI
-cairo_status_t
-cairo_surface_clip_restore (cairo_surface_t *surface);
-
-cairo_status_t
-cairo_surface_clip_begin (cairo_surface_t *surface);
-
-cairo_status_t
-cairo_surface_clip_rectangle (cairo_surface_t *surface,
- int x, int y,
- int width, int height);
-*/
-
/* XXX: Note: The current Render/Ic implementations don't do the right
thing with repeat when the surface has a non-identity matrix. */
/* XXX: Rework this as a cairo function with an enum: cairo_set_pattern_extend */
diff --git a/src/cairo_image_surface.c b/src/cairo_image_surface.c
index a11a07eed..2b52e5b21 100644
--- a/src/cairo_image_surface.c
+++ b/src/cairo_image_surface.c
@@ -112,11 +112,11 @@ _create_pixman_format (cairo_format_t format)
return pixman_format_create (PIXMAN_FORMAT_NAME_A8);
break;
case CAIRO_FORMAT_RGB24:
- return pixman_format_create (PIXMAN_FORMAT_NAME_RG_B24);
+ return pixman_format_create (PIXMAN_FORMAT_NAME_RGB24);
break;
case CAIRO_FORMAT_ARGB32:
default:
- return pixman_format_create (PIXMAN_FORMAT_NAME_AR_GB32);
+ return pixman_format_create (PIXMAN_FORMAT_NAME_ARGB32);
break;
}
}
diff --git a/src/cairo_png_surface.c b/src/cairo_png_surface.c
index ed7bb039e..851df98da 100644
--- a/src/cairo_png_surface.c
+++ b/src/cairo_png_surface.c
@@ -103,6 +103,10 @@ cairo_png_surface_create (FILE *file,
PNG_COMPRESSION_TYPE_DEFAULT,
PNG_FILTER_TYPE_DEFAULT);
break;
+ case CAIRO_FORMAT_A8:
+ case CAIRO_FORMAT_A1:
+ /* These are not currently supported. */
+ break;
}
png_convert_from_time_t (&png_time, now);
@@ -118,6 +122,10 @@ cairo_png_surface_create (FILE *file,
png_set_filler (surface->png_w, 0, PNG_FILLER_AFTER);
png_set_bgr (surface->png_w);
break;
+ case CAIRO_FORMAT_A8:
+ case CAIRO_FORMAT_A1:
+ /* These are not currently supported. */
+ break;
}
return &surface->base;