Ignore:
Timestamp:
Jun 11, 2006, 4:12:09 PM (15 years ago)
Author:
Eugene Romanenko
Message:

added settings dialog, asynch opening, fixed many crashes and bugs

File:
1 edited

Legend:

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

    r44 r50  
    313313    Environment      *ev;
    314314    LuPixbuf         *pixbuf;
    315     SplashBitmap     *bitmap;
     315    SplashOutputDev  *out;
    316316    void             *fndata;
    317317    _asynchCallbackFn fnd;
     
    328328    DosQuerySysInfo( QSV_MS_COUNT, QSV_MS_COUNT, &now, sizeof( long ) );
    329329    long dist = ( now - cd->tmr );
    330     if ( ( dist > cd->delay ) || cd->forceDraw ) {
    331         copy_page_to_pixbuf( cd->ev, cd->bitmap, cd->pixbuf );
     330    if ( ( dist > cd->delay ) || cd->forceDraw )
     331    {
     332        // Note: we use out->getBitmap() on each iteration instead
     333        //       of remembering pointer to bitmap before call
     334        //       page->displaySlice() because OutputDev may change
     335        //       bitmap during page->displaySlice() processing.
     336        copy_page_to_pixbuf( cd->ev, cd->out->getBitmap(), cd->pixbuf );
    332337        cd->fnd( cd->fndata );
    333338        cd->tmr = now;
     
    362367    acd.ev        = ev;
    363368    acd.pixbuf    = pixbuf;
    364     acd.bitmap    = document->output_dev->getBitmap();
     369    acd.out       = document->output_dev;
    365370    acd.fndata    = fndata;
    366371    acd.fnd       = (_asynchCallbackFn)fnd;
Note: See TracChangeset for help on using the changeset viewer.