зеркало из https://github.com/mozilla/gecko-dev.git
Bug 499135: Cairo/Qt fails to build -- yet again, r=mfinkle
This commit is contained in:
Родитель
87e9c3bbdd
Коммит
8dd8347ec2
|
@ -600,6 +600,7 @@ _cairo_qpainter_surface_release_dest_image (void *abstract_surface,
|
||||||
static cairo_status_t
|
static cairo_status_t
|
||||||
_cairo_qpainter_surface_clone_similar (void *abstract_surface,
|
_cairo_qpainter_surface_clone_similar (void *abstract_surface,
|
||||||
cairo_surface_t *src,
|
cairo_surface_t *src,
|
||||||
|
cairo_content_t content,
|
||||||
int src_x,
|
int src_x,
|
||||||
int src_y,
|
int src_y,
|
||||||
int width,
|
int width,
|
||||||
|
@ -612,11 +613,11 @@ _cairo_qpainter_surface_clone_similar (void *abstract_surface,
|
||||||
cairo_surface_t *new_surf = NULL;
|
cairo_surface_t *new_surf = NULL;
|
||||||
|
|
||||||
// For non-image targets, always try to create a QPixmap first
|
// For non-image targets, always try to create a QPixmap first
|
||||||
if (qs->image == NULL && (!_qpixmaps_have_no_alpha || src->content == CAIRO_CONTENT_COLOR))
|
if (qs->image == NULL && (!_qpixmaps_have_no_alpha || content == CAIRO_CONTENT_COLOR))
|
||||||
{
|
{
|
||||||
new_surf = cairo_qpainter_surface_create_with_qpixmap
|
new_surf = cairo_qpainter_surface_create_with_qpixmap
|
||||||
(src->content, width, height);
|
(content, width, height);
|
||||||
if (cairo_surface_get_content (new_surf) != src->content) {
|
if (cairo_surface_get_content (new_surf) != content) {
|
||||||
cairo_surface_destroy (new_surf);
|
cairo_surface_destroy (new_surf);
|
||||||
_qpixmaps_have_no_alpha = TRUE;
|
_qpixmaps_have_no_alpha = TRUE;
|
||||||
new_surf = NULL;
|
new_surf = NULL;
|
||||||
|
@ -625,7 +626,7 @@ _cairo_qpainter_surface_clone_similar (void *abstract_surface,
|
||||||
|
|
||||||
if (new_surf == NULL) {
|
if (new_surf == NULL) {
|
||||||
new_surf = cairo_qpainter_surface_create_with_qimage
|
new_surf = cairo_qpainter_surface_create_with_qimage
|
||||||
(_cairo_format_from_content (src->content), width, height);
|
(_cairo_format_from_content (content), width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_surf->status)
|
if (new_surf->status)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче