ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.295 by root, Fri Jan 4 20:39:42 2008 UTC vs.
Revision 1.296 by sasha, Fri Jan 4 21:25:57 2008 UTC

1716 if (update_background_ev.is_active ()) 1716 if (update_background_ev.is_active ())
1717 return; 1717 return;
1718 1718
1719 bgPixmap.invalidate (); 1719 bgPixmap.invalidate ();
1720 1720
1721 ev_tstamp refresh; 1721 ev_tstamp to_wait = 0.5 - (ev::now () - bgPixmap.valid_since);
1722 1722
1723 if (!bgPixmap.need_client_side_rendering ()) 1723 if ( to_wait <= 0. )
1724 refresh = .05; 1724 bgPixmap.render ();
1725 else if (bgPixmap.flags & bgPixmap_t::blurNeeded)
1726 /* no chance of real time refresh if we are bluring! */
1727 refresh = .50;
1728 else 1725 else
1729 refresh = .07;
1730
1731 update_background_ev.start (refresh); 1726 update_background_ev.start (to_wait);
1732} 1727}
1733 1728
1734void 1729void
1735rxvt_term::update_background_cb (ev::timer &w, int revents) 1730rxvt_term::update_background_cb (ev::timer &w, int revents)
1736{ 1731{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines