summaryrefslogtreecommitdiff
path: root/tools/convpic/tiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/convpic/tiff.c')
-rw-r--r--tools/convpic/tiff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/convpic/tiff.c b/tools/convpic/tiff.c
index 4b8bf0e..3eb8cad 100644
--- a/tools/convpic/tiff.c
+++ b/tools/convpic/tiff.c
@@ -71,7 +71,8 @@ bool cTIFFFile::Load(GLCD::cImage & image, const std::string & fileName)
unsigned char fLittleEndian=0;
int j;
int t;
- unsigned char *bitmap = NULL;
+// unsigned char *bitmap = NULL;
+ uint32_t *bitmap = NULL;
bool bInvert = false;
if (fileName.length() > 0)
@@ -152,7 +153,8 @@ bool cTIFFFile::Load(GLCD::cImage & image, const std::string & fileName)
image.SetWidth(width);
image.SetHeight(height);
image.SetDelay(100);
- bitmap = new unsigned char[height * ((width + 7) / 8)];
+// bitmap = new unsigned char[height * ((width + 7) / 8)];
+ bitmap = new uint32_t[height * width];
if (bitmap)
{
if (fread(bitmap, height*((width+7)/8), 1, fIN)!=1)