diff options
author | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-09 18:24:37 (GMT) |
---|---|---|
committer | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-09 18:24:37 (GMT) |
commit | d0984533fa0524131d765b56b3b2842216bf82d2 (patch) | |
tree | b28d45e0831bf44974241455c261d859f4e78fa9 | |
parent | aaa4934eacb2d9f1b214c4cf762a0da03fa9dce2 (diff) |
(redraw): fix pixbuf data offset.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | pdf/xpdf/GDKSplashOutputDev.cc | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-01-09 Martin Kretzschmar <martink@gnome.org> + + * pdf/xpdf/GDKSplashOutputDev.cc (redraw): fix pixbuf data offset. + 2005-01-09 Marco Pesenti Gritti <marco@gnome.org> * cut-n-paste/recent-files/egg-recent-item.c: diff --git a/pdf/xpdf/GDKSplashOutputDev.cc b/pdf/xpdf/GDKSplashOutputDev.cc index ad0040f..e570bd0 100644 --- a/pdf/xpdf/GDKSplashOutputDev.cc +++ b/pdf/xpdf/GDKSplashOutputDev.cc @@ -114,7 +114,7 @@ void GDKSplashOutputDev::redraw(int srcX, int srcY, destX, destY, width, height, GDK_RGB_DITHER_NORMAL, - getBitmap()->getDataPtr().rgb8p + srcY * gdk_rowstride + srcX, + getBitmap()->getDataPtr().rgb8p + srcY * gdk_rowstride + srcX * 3, gdk_rowstride); g_object_unref (gc); |