summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/mozilla/moz_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c
index edbfe255..3be5723b 100644
--- a/apps/mozilla/moz_main.c
+++ b/apps/mozilla/moz_main.c
@@ -391,7 +391,7 @@ void pdfmoz_onmouse(pdfmoz_t *moz, int x, int y, int click)
static void drawimage(HDC hdc, pdfmoz_t *moz, fz_pixmap *image, int yofs)
{
int bmpstride = ((image->w * 3 + 3) / 4) * 4;
- char *bmpdata = fz_malloc(image->h * bmpstride);
+ unsigned char *bmpdata = fz_malloc(image->h * bmpstride);
int x, y;
if (!bmpdata)
@@ -399,8 +399,8 @@ static void drawimage(HDC hdc, pdfmoz_t *moz, fz_pixmap *image, int yofs)
for (y = 0; y < image->h; y++)
{
- char *p = bmpdata + y * bmpstride;
- char *s = image->samples + y * image->w * 4;
+ unsigned char *p = bmpdata + y * bmpstride;
+ unsigned char *s = image->samples + y * image->w * 4;
for (x = 0; x < image->w; x++)
{
p[x * 3 + 0] = s[x * 4 + 3];