summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2022-04-25 19:46:22 +0930
committerAdrian Johnson <ajohnson@redneon.com>2022-04-25 19:48:54 +0930
commit44533caf6b74ec3d531eb7ceec6ed2a31b24079a (patch)
tree8da5da3169351b964fa284e617c76f924e7979c7
parent8ed7d5633db76df10ef340edc31f1cc868e3ab02 (diff)
HtmlOutputDev: don't use png.h
It is not needed. Fixes mingw build that was failing with png.h not found.
-rw-r--r--utils/HtmlOutputDev.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 94f3a67c..a10be08e 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -79,10 +79,6 @@
#include "Outline.h"
#include "PDFDoc.h"
-#ifdef ENABLE_LIBPNG
-# include <png.h>
-#endif
-
#define DEBUG __FILE__ << ": " << __LINE__ << ": DEBUG: "
class HtmlImage
@@ -1359,8 +1355,8 @@ void HtmlOutputDev::drawPngImage(GfxState *state, Stream *str, int width, int he
if (!isMask) {
unsigned char *p;
GfxRGB rgb;
- png_byte *row = (png_byte *)gmalloc(3 * width); // 3 bytes/pixel: RGB
- png_bytep *row_pointer = &row;
+ unsigned char *row = (unsigned char *)gmalloc(3 * width); // 3 bytes/pixel: RGB
+ unsigned char **row_pointer = &row;
// Initialize the image stream
ImageStream *imgStr = new ImageStream(str, width, colorMap->getNumPixelComps(), colorMap->getBits());