repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 0c4f3700c1b3bfb4669819531aa2c69a8154a526:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 0c4f3700c1b3bfb4669819531aa2c69a8154a526
Author: Marc Lehmann 
Date:   Tue Nov 4 23:35:50 2008 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index 2d275de35f0f7baec85b932364a22e7607ba939a..
index ..a5d1d6388b3d7a6b95e7494e8d63436f69cc109d 100644
--- a/Changes
+++ b/Changes
@@ -20,6 +20,10 @@ WISH: look into XAddConnectionWatch, does anybody need that?
 DUMB: support tex fonts

 TODO:   /*TODO: the xlceararea/xfillrectangle below don't take scroll offste into account, ask mikachu for details */
+00:25:39  put your prompt around the middle row in the terminal
+                   and while sleep 0.1; do printf '\e[J'; done
+00:26:31  i assume scorllttyoutput or so wouldinterfere?
+

 TODO: cursor over overlays, when focus change?
 	- the aterm code now frees the as visual and image manager objects
diff --git a/src/screen.C b/src/screen.C
index c19c6ef2c5b1eb13d09130bd32413bc9305eb842..
index ..d57e2a4340751c34877dd7687ba023b039bdd4a1 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -1353,7 +1353,7 @@ rxvt_term::scr_erase_screen (int mode) NOTHROW

       if (mapped)
         XClearArea (dpy, vt, 0,
-                    Row2Pixel (row), (unsigned int)width,
+                    Row2Pixel (row - view_start), (unsigned int)width,
                     (unsigned int)Height2Pixel (num), False);
     }
   else
@@ -1363,7 +1363,7 @@ rxvt_term::scr_erase_screen (int mode) NOTHROW
       gcvalue.foreground = pix_colors[bgcolor_of (rstyle)];
       XChangeGC (dpy, gc, GCForeground, &gcvalue);
       XFillRectangle (dpy, vt, gc,
-                      0, Row2Pixel (row),
+                      0, Row2Pixel (row - view_start),
                       (unsigned int)width,
                       (unsigned int)Height2Pixel (num));
       gcvalue.foreground = pix_colors[Color_fg];

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