From: Martin Kretzschmar Date: Sun, 9 Jan 2005 18:24:37 +0000 (+0000) Subject: (redraw): fix pixbuf data offset. X-Git-Tag: EVINCE_0_1_1~64 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=d0984533fa0524131d765b56b3b2842216bf82d2;p=evince.git (redraw): fix pixbuf data offset. --- diff --git a/ChangeLog b/ChangeLog index fd88acc5..52487a82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-09 Martin Kretzschmar + + * pdf/xpdf/GDKSplashOutputDev.cc (redraw): fix pixbuf data offset. + 2005-01-09 Marco Pesenti Gritti * cut-n-paste/recent-files/egg-recent-item.c: diff --git a/pdf/xpdf/GDKSplashOutputDev.cc b/pdf/xpdf/GDKSplashOutputDev.cc index ad0040fd..e570bd0c 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);