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:
parent
f7d2a09bf8
commit
55d6ede1da
4 changed files with 28 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue