aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--display.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 652a1bc..efb1d80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2002-02-14 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03048] garbage of images on the right edge of termical.
+ * display.c (redrawLineImage): fix width calculation
+
+2002-02-14 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03053] Re: SSL indicator
* main.c (dump_extra): Output SSL certificate.
@@ -2926,4 +2931,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.316 2002/02/13 17:24:24 ukai Exp $
+$Id: ChangeLog,v 1.317 2002/02/14 03:47:48 ukai Exp $
diff --git a/display.c b/display.c
index d0220f1..803044e 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.18 2002/02/12 08:43:46 ukai Exp $ */
+/* $Id: display.c,v 1.19 2002/02/14 03:47:48 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -677,8 +677,8 @@ redrawLineImage(Buffer *buf, Line *l, int i)
h = image->height - sy;
else
h = (int)(pixel_per_line - sy);
- if (w > (int)((buf->COLS - rcol + column) * pixel_per_char))
- w = (int)((buf->COLS - rcol + column) * pixel_per_char);
+ if (w > (int)((buf->rootX + buf->COLS) * pixel_per_char - x))
+ w = (int)((buf->rootX + buf->COLS) * pixel_per_char - x);
if (h > (int)(LASTLINE * pixel_per_line - y))
h = (int)(LASTLINE * pixel_per_line - y);
addImage(cache, x, y, sx, sy, w, h);