mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 406376 - "Firefox generating PostScript Level 3 code, instead of Level 2 one (was: Printing graphics prints a solid black box)" (Use Level 2) [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr=roc a=blocking1.9+]
This commit is contained in:
parent
4d6d565472
commit
82e400b523
@ -57,7 +57,9 @@ write_func(void *closure, const unsigned char *data, unsigned int length)
|
|||||||
gfxPSSurface::gfxPSSurface(nsIOutputStream *aStream, const gfxSize& aSizeInPoints)
|
gfxPSSurface::gfxPSSurface(nsIOutputStream *aStream, const gfxSize& aSizeInPoints)
|
||||||
: mStream(aStream), mXDPI(-1), mYDPI(-1), mSize(aSizeInPoints)
|
: mStream(aStream), mXDPI(-1), mYDPI(-1), mSize(aSizeInPoints)
|
||||||
{
|
{
|
||||||
Init(cairo_ps_surface_create_for_stream(write_func, (void*)mStream, mSize.width, mSize.height));
|
cairo_surface_t* ps_surface = cairo_ps_surface_create_for_stream(write_func, (void*)mStream, mSize.width, mSize.height);
|
||||||
|
cairo_ps_surface_restrict_to_level(ps_surface, CAIRO_PS_LEVEL_2);
|
||||||
|
Init(ps_surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
gfxPSSurface::~gfxPSSurface()
|
gfxPSSurface::~gfxPSSurface()
|
||||||
|
Loading…
Reference in New Issue
Block a user