summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/writepng.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/writepng.c')
-rw-r--r--Build/source/texk/web2c/pdftexdir/writepng.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writepng.c b/Build/source/texk/web2c/pdftexdir/writepng.c
index 481d4bb6461..523396f0160 100644
--- a/Build/source/texk/web2c/pdftexdir/writepng.c
+++ b/Build/source/texk/web2c/pdftexdir/writepng.c
@@ -34,7 +34,7 @@ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#define png_rowbytes(N) png_get_rowbytes(png_ptr(N), png_info(N))
#define png_width(N) png_get_image_width(png_ptr(N), png_info(N))
-static int transparent_page_group = -1;
+static int transparent_page_group = 0;
void read_png_info(integer img)
{
@@ -106,10 +106,10 @@ void read_png_info(integer img)
/* png with alpha channel in device colours; we have to add a Page
* Group to make Adobe happy, so we have to create a dummy group object
*/
- if (transparent_page_group < 1) {
+ if (transparent_page_group == 0) {
transparent_page_group = pdfnewobjnum();
}
- if (pdfpagegroupval < 1) {
+ if (pdfpagegroupval == 0) {
pdfpagegroupval = transparent_page_group;
}
img_group_ref(img) = pdfpagegroupval;
@@ -510,7 +510,7 @@ static boolean transparent_page_group_was_written = false;
static void write_additional_png_objects(void)
{
if (last_png_needs_page_group) {
- if (!transparent_page_group_was_written && transparent_page_group > 1) {
+ if (!transparent_page_group_was_written && transparent_page_group > 0) {
// create new group object
transparent_page_group_was_written = true;
pdfbeginobj(transparent_page_group, 2);