"disable incremental display while loading from URL"
[email protected] Wed, 31 Jul 2002 15:17:30 -0700
| Newsgroups | gmane.comp.lib.ivtools.patches |
|---|---|
| Message-ID | <[email protected]> |
Patch: ivtools-020731-johnston-061 For: ivtools-1.0.4 Author: [email protected] Subject: disable incremental display while loading from URL Requires: This is an intermediate patch to ivtools-1.0.4. To apply, cd to the top-level directory of the ivtools source tree (the directory with src and config subdirs), and apply like this: patch -p0 <ThisFile Summary of Changes: - disable incremental display while incrementally loading from a URL. A placeholder raster still gets inserted before the connection is established, and the rest of the download and display is asynchronous, which avoids hanging on a net connection. Index: OverlayUnidraw/ovimport.c diff -c OverlayUnidraw/ovimport.c:1.10 OverlayUnidraw/ovimport.c:1.11 *** OverlayUnidraw/ovimport.c:1.10 Wed Jul 24 11:00:26 2002 --- src/OverlayUnidraw/ovimport.c Wed Jul 31 15:11:09 2002 *************** *** 29,34 **** --- 29,37 ---- */ // #define OPEN_DRAWTOOL_URL // define for drawtool document loading from a URL + // #define RASTER_INCREMENTAL_DISPLAY // enable incremental display when doing + // incremental download + #include <OverlayUnidraw/grayraster.h> #include <OverlayUnidraw/ovcatalog.h> #include <OverlayUnidraw/ovclasses.h> *************** *** 560,565 **** --- 563,569 ---- rr->GetOverlayRaster()->rep()->modified_ = true; OverlayPainter::Uncache(_itr->raster()); + #ifdef RASTER_INCREMENTAL_DISPLAY // sets the damage indicator on the view side raster graphic // in RasterOvView::Update *************** *** 569,574 **** --- 573,579 ---- rr->damage_done(0); unidraw->Update(); + #endif } _save.seekp(0); *************** *** 654,659 **** --- 659,671 ---- } else if (stat == 0) { // eof // cerr << "im: " << _fd << ", EOF, closing" << endl; + + #ifndef RASTER_INCREMENTAL_DISPLAY + _comp->Notify(); + // rr->damage_done(0); + unidraw->Update(); + #endif + delete this; return -1; // don't ever call me again (i.e., detach me) } *** /dev/null Wed Jul 31 15:11:25 PDT 2002 --- patches/ivtools-020731-johnston-061 *************** patches/ivtools-020731-johnston-061 *** 0 **** --- 1 ---- + ivtools-020731-johnston-061 ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31