Ignore:
Timestamp:
May 25, 2006, 4:09:55 PM (15 years ago)
Author:
Eugene Romanenko
Message:

poppler updated to version 0.5.2, also needed changes to be compatible with new poppler

File:
1 edited

Legend:

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

    r23 r27  
    154154}
    155155
     156
     157SOM_Scope short  SOMLINK getBpp(LuPopplerDocument *somSelf,  Environment *ev)
     158{
     159    return 4;
     160}
    156161
    157162SOM_Scope boolean  SOMLINK isScalable(LuPopplerDocument *somSelf,
     
    11611166    }
    11621167
    1163     LuPixbuf *pixbuf = new LuPixbuf( ev, width, height );
     1168    short bpp = getBpp( somSelf, ev );
     1169    LuPixbuf *pixbuf = new LuPixbuf( ev, width, height, bpp );
    11641170    char *pixbuf_data = (char *)pixbuf->getDataPtr( ev );
    11651171    int pixbuf_rowstride = pixbuf->getRowSize( ev );
     
    11701176        src = data + ( j * rowstride );
    11711177        dst = pixbuf_data + (i * pixbuf_rowstride);
    1172         for ( int k = 0; k < pixbuf_rowstride; k+= 3 )
     1178        for ( int k = 0; k < pixbuf_rowstride; k += bpp )
    11731179        {
    11741180            dst[ k ]     = src[ k + 2 ];
     
    13431349    white[1] = 255;
    13441350    white[2] = 255;
    1345     document->output_dev = new SplashOutputDev( splashModeBGR8, 4, gFalse, white );
     1351    document->output_dev = new SplashOutputDev( splashModeRGB8, 4, gFalse, white );
    13461352    document->output_dev->startDoc( document->doc->getXRef() );
    13471353
Note: See TracChangeset for help on using the changeset viewer.