X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=dvi%2Fpixbuf-device.c;h=6175e471980f5b1d498a2604c67ac628d1cc74be;hb=b7abdba401b7aec50e93ecd1df1ce76cb1f315c1;hp=fbb059282602e1dc90e2d49d54827132d91eb381;hpb=e88d645e01f3bfbdbeb965f49a091887ead04ab1;p=evince.git diff --git a/dvi/pixbuf-device.c b/dvi/pixbuf-device.c index fbb05928..6175e471 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;