commit 9f000a40385f9f4d42e8101055fc307d90b687b1
parent 81da9ac3e26b494c7c12d262a801d52129608771
Author: ukai <ukai>
Date: Thu, 14 Feb 2002 03:47:48 +0000
[w3m-dev 03048] garbage of images on the right edge of termical.
* display.c (redrawLineImage): fix width calculation
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git 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.
diff --git a/display.c b/display.c
@@ -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);