Changeset 84 for trunk/Lucide


Ignore:
Timestamp:
Jul 22, 2006, 10:23:34 AM (15 years ago)
Author:
Eugene Romanenko
Message:

djvu plugin fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.cpp

    r71 r84  
    196196    char *pixbuf_data = (char *)pixbuf->getDataPtr( ev );
    197197    char *src, *dst;
    198     int i, y;
     198    int i, y, linesize = __min( pb_rowsize, pixbuf_rowsize );
    199199    for ( y = (src_height-1), i = 0; i < src_height; y--, i++ )
    200200    {
    201201        src = pbbuf + (y * pb_rowsize);
    202202        dst = pixbuf_data + (i * pixbuf_rowsize);
    203         memcpy( dst, src, src_width * bpp );
     203        memcpy( dst, src, linesize );
    204204    }
    205205    delete pb;
Note: See TracChangeset for help on using the changeset viewer.