repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: a19cfabedda4a03ec33f795ced87fddc54fe2f93: path_to: revision_to:
commit a19cfabedda4a03ec33f795ced87fddc54fe2f93 Author: Emanuele GiaquintaDate: 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
--- 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-----