mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 811002 - Part 2: Never create a DIB when printing. r=bas
This commit is contained in:
parent
8792fa2a8c
commit
45780df00e
@ -125,7 +125,7 @@ gfxWindowsSurface::CreateSimilarSurface(gfxContentType aContent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cairo_surface_t *surface;
|
cairo_surface_t *surface;
|
||||||
if (GetContentType() == GFX_CONTENT_COLOR_ALPHA) {
|
if (!mForPrinting && GetContentType() == GFX_CONTENT_COLOR_ALPHA) {
|
||||||
// When creating a similar surface to a transparent surface, ensure
|
// When creating a similar surface to a transparent surface, ensure
|
||||||
// the new surface uses a DIB. cairo_surface_create_similar won't
|
// the new surface uses a DIB. cairo_surface_create_similar won't
|
||||||
// use a DIB for a GFX_CONTENT_COLOR surface if this surface doesn't
|
// use a DIB for a GFX_CONTENT_COLOR surface if this surface doesn't
|
||||||
|
Loading…
Reference in New Issue
Block a user