diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-06 20:42:49 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-06 20:42:49 (GMT) |
commit | 2d7d2bb4d1430ee3f94daa53a55ed6ee5b4c2ba0 (patch) | |
tree | 0e2462a4d71d0435df186a52f3775b60ea33c936 /dvi/pixbuf-device.c | |
parent | 83b065151b9494be0f5778075874a80cec2fa636 (diff) |
Fix gcc 4.0 warnings
Diffstat (limited to 'dvi/pixbuf-device.c')
-rw-r--r-- | dvi/pixbuf-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |