summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def')
-rw-r--r--Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def10
1 files changed, 7 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def b/Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def
index d28777ad4dd..70d1c1e889e 100644
--- a/Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def
+++ b/Master/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-pdftex.def
@@ -43,6 +43,7 @@
% operator which is why I am using pattern dictionaries.
\def\pgfplotslibrarysurfdraw{%
\begingroup
+ %\pgfinterruptpicture% needed?
\setbox\pgfutil@tempboxa=\hbox{%
\pgfpicture
\pgfplotssys@do@surfshading@fillpaths\pgfplots@loc@TMPa%
@@ -50,7 +51,7 @@
\pgfpathrectanglecorners
{\pgfplotslibrarysurf@corner@sw}
{\pgfplotslibrarysurf@corner@ne}%
- \pgfusepath{fill}%
+ \pgfplotslibrarysurfusepath
\endpgfpicture
}%
\immediate\pdfxform resources{
@@ -58,6 +59,7 @@
}\pgfutil@tempboxa
\leavevmode
\pdfrefxform\pdflastxform
+ %\endpgfinterruptpicture
\endgroup
}
@@ -82,7 +84,7 @@
% stream length will be computed automatically
/ShadingType \pgfplotslibrarysurf@type\space
/BitsPerCoordinate \pgfplotslibrarysurf@bitspercoordinate\space
- /BitsPerComponent 16
+ /BitsPerComponent \pgfplotslibrarysurf@bitspercomponent\space
\if5\pgfplotslibrarysurf@type
/VerticesPerRow \pgfkeysvalueof{/pgfplots/surf shading/cols}
\else
@@ -90,7 +92,9 @@
\fi
/ColorSpace /Device\pgfplotslibrarysurf@colorspace
/Decode [\pgfplotslibrarysurf@decode]
- /Function \pgfkeysvalueof{/pgfplots/surf shading/colormap}
+ \ifpgfplotslibrarysurf@usecolormap
+ /Function \pgfkeysvalueof{/pgfplots/surf shading/colormap}
+ \fi
\ifx\pgfplotslibrarysurf@filter@decode\pgfutil@empty
\else
/Filter /\pgfplotslibrarysurf@filter@decode\space