Bug 500196: cairo/qt fails to build -- yet again, r=mfinkle

This commit is contained in:
Steffen Imhof 2009-06-30 09:58:29 -04:00
Родитель be3d6eb544
Коммит e79913a333
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -602,7 +602,6 @@ _cairo_qpainter_surface_release_dest_image (void *abstract_surface,
static cairo_status_t
_cairo_qpainter_surface_clone_similar (void *abstract_surface,
cairo_surface_t *src,
cairo_content_t content,
int src_x,
int src_y,
int width,
@ -615,11 +614,11 @@ _cairo_qpainter_surface_clone_similar (void *abstract_surface,
cairo_surface_t *new_surf = NULL;
// For non-image targets, always try to create a QPixmap first
if (qs->image == NULL && (!_qpixmaps_have_no_alpha || content == CAIRO_CONTENT_COLOR))
if (qs->image == NULL && (!_qpixmaps_have_no_alpha || src->content == CAIRO_CONTENT_COLOR))
{
new_surf = cairo_qpainter_surface_create_with_qpixmap
(content, width, height);
if (cairo_surface_get_content (new_surf) != content) {
(src->content, width, height);
if (cairo_surface_get_content (new_surf) != src->content) {
cairo_surface_destroy (new_surf);
_qpixmaps_have_no_alpha = TRUE;
new_surf = NULL;
@ -628,7 +627,7 @@ _cairo_qpainter_surface_clone_similar (void *abstract_surface,
if (new_surf == NULL) {
new_surf = cairo_qpainter_surface_create_with_qimage
(_cairo_format_from_content (content), width, height);
(_cairo_format_from_content (src->content), width, height);
}
if (new_surf->status)