1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Create only one instance of each device colorspace.

This commit is contained in:
Brendan Dahl 2013-07-30 15:35:35 -07:00
parent f7d2a09bf8
commit 55d6ede1da
4 changed files with 28 additions and 26 deletions

View file

@ -398,7 +398,7 @@ var TilingPattern = (function TilingPatternClosure() {
context.strokeStyle = ctx.strokeStyle;
break;
case PaintType.UNCOLORED:
var rgbColor = new DeviceRgbCS().getRgb(color, 0);
var rgbColor = ColorSpace.singletons.rgb.getRgb(color, 0);
var cssColor = Util.makeCssRgb(rgbColor);
context.fillStyle = cssColor;
context.strokeStyle = cssColor;