--- a/cairo-1.9.12/src/cairo-image-surface.c 2010-07-12 10:57:03.000000000 +0200 +++ cairo-1.9.12/src/cairo-image-surface.c 2011-06-01 15:42:34.000000000 +0200 @@ -1,8 +1,8 @@ /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */ /* cairo - a vector graphics library with display and print output * - * Copyright © 2003 University of Southern California - * Copyright © 2009,2010 Intel Corporation +5B * Copyright © 2003 University of Southern California + *5B Copyright © 2009,2010 Intel Corporation * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public @@ -195,7 +195,7 @@ b = _cairo_popcount (masks->blue_mask); if (masks->red_mask) { - if (masks->red_mask > masks->blue_mask) + if (masks->red_mask < masks->blue_mask) format_type = PIXMAN_TYPE_ARGB; else format_type = PIXMAN_TYPE_ABGR;