From 2d7d2bb4d1430ee3f94daa53a55ed6ee5b4c2ba0 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Mon, 06 Jun 2005 20:42:49 +0000 Subject: Fix gcc 4.0 warnings --- (limited to 'dvi') diff --git a/dvi/pixbuf-device.c b/dvi/pixbuf-device.c index fbb0592..6175e47 100644 --- a/dvi/pixbuf-device.c +++ b/dvi/pixbuf-device.c @@ -54,7 +54,7 @@ static void dvi_pixbuf_draw_rule(DviContext *dvi, int x, int y, Uint w, Uint h, { DviPixbufDevice *c_device = (DviPixbufDevice *) dvi->device.device_data; gint rowstride; - gchar *p; + guchar *p; gint i, j; gint red, green, blue; @@ -140,7 +140,7 @@ static void dvi_pixbuf_free_image(void *ptr) static void dvi_pixbuf_put_pixel(void *image, int x, int y, Ulong color) { - gchar *p; + guchar *p; p = gdk_pixbuf_get_pixels (GDK_PIXBUF(image)) + y * gdk_pixbuf_get_rowstride(GDK_PIXBUF(image)) + x * 4; -- cgit v0.9.1