src/pixmap.cc
branchpyrit
changeset 103 3b3257a410fe
parent 95 ca7d4c665531
equal deleted inserted replaced
102:de3e9ea18f56 103:3b3257a410fe
    29 #include "config.h"
    29 #include "config.h"
    30 #include "pixmap.h"
    30 #include "pixmap.h"
    31 
    31 
    32 #ifdef HAVE_PNG
    32 #ifdef HAVE_PNG
    33 #	include <png.h>
    33 #	include <png.h>
       
    34 #   include <zlib.h>
    34 #endif
    35 #endif
    35 
    36 
    36 unsigned char *Pixmap::getCharData() const
    37 unsigned char *Pixmap::getCharData() const
    37 {
    38 {
    38 	unsigned char *cdata = new unsigned char[w*h*3];
    39 	unsigned char *cdata = new unsigned char[w*h*3];