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:
reed@reedloden.com 2008-02-06 21:26:50 -08:00
parent 4d6d565472
commit 82e400b523

View File

@ -57,7 +57,9 @@ write_func(void *closure, const unsigned char *data, unsigned int length)
gfxPSSurface::gfxPSSurface(nsIOutputStream *aStream, const gfxSize& 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()