[gdk-pixbuf: 20/24] io-jpeg.c: Don't use gdk-pixbuf-private.h
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 20/24] io-jpeg.c: Don't use gdk-pixbuf-private.h
- Date: Wed, 22 Aug 2018 11:34:40 +0000 (UTC)
commit fa1f09a29c42841d7a9fe2faa89ca678f1c7da48
Author: Federico Mena Quintero <federico gnome org>
Date: Mon May 14 19:07:02 2018 -0500
io-jpeg.c: Don't use gdk-pixbuf-private.h
gdk-pixbuf/io-jpeg.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 15c0d635f..f22b5070d 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -33,8 +33,8 @@
#include <jpeglib.h>
#include <jerror.h>
#include <math.h>
-
-#include "gdk-pixbuf-private.h"
+#include <glib/gi18n-lib.h>
+#include "gdk-pixbuf-io.h"
#include "fallback-c89.c"
#ifndef HAVE_SIGSETJMP
@@ -687,7 +687,7 @@ gdk_pixbuf__jpeg_image_load (FILE *f, GError **error)
lptr = lines;
for (i = 0; i < cinfo.rec_outbuf_height; i++) {
*lptr++ = dptr;
- dptr += pixbuf->rowstride;
+ dptr += gdk_pixbuf_get_rowstride (pixbuf);
}
jpeg_read_scanlines (&cinfo, lines, cinfo.rec_outbuf_height);
@@ -918,7 +918,7 @@ gdk_pixbuf__jpeg_image_load_lines (JpegProgContext *context,
rowptr = context->dptr;
for (i=0; i < cinfo->rec_outbuf_height; i++) {
*lptr++ = rowptr;
- rowptr += context->pixbuf->rowstride;
+ rowptr += gdk_pixbuf_get_rowstride (context->pixbuf);
}
nlines = jpeg_read_scanlines (cinfo, lines,
@@ -946,7 +946,7 @@ gdk_pixbuf__jpeg_image_load_lines (JpegProgContext *context,
return FALSE;
}
- context->dptr += (gsize)nlines * context->pixbuf->rowstride;
+ context->dptr += (gsize)nlines * gdk_pixbuf_get_rowstride (context->pixbuf);
/* send updated signal */
if (context->updated_func)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]