repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: a19cfabedda4a03ec33f795ced87fddc54fe2f93:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit a19cfabedda4a03ec33f795ced87fddc54fe2f93
Author: Emanuele Giaquinta 
Date:   Fri Jan 14 11:09:54 2011 +0000

    Reuse existing drawable if possible in rxvt_screen::scratch_drawable,
    it is faster with the current code.

diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
index 7bbabd32d725789c13d29a985ccc0a67ffcdce6a..
index ..8783e343264a0b7471051e6170169c9a1965f6bc 100644
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -229,10 +229,7 @@ rxvt_screen::rxvt_screen ()

 rxvt_drawable &rxvt_screen::scratch_drawable (int w, int h)
 {
-  // it's actually faster to re-allocate every time. don't ask me
-  // why, but its likely no big deal there are no roundtrips
-  // (I think/hope).
-  if (!scratch_area || w > scratch_w || h > scratch_h || 1/*D*/)
+  if (!scratch_area || w > scratch_w || h > scratch_h)
     {
       if (scratch_area)
         {

-----END OF PAGE-----