diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-14 03:47:48 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-14 03:47:48 +0000 |
commit | 9e8ad273fcdf23e71bf7988825483e4246fd204a (patch) | |
tree | 81d5dff0a44ab9b4f2a1fc3fcb81724d4c2ebd61 /display.c | |
parent | * [w3m-dev 03053] Re: SSL indicator (diff) | |
download | w3m-9e8ad273fcdf23e71bf7988825483e4246fd204a.tar.gz w3m-9e8ad273fcdf23e71bf7988825483e4246fd204a.zip |
[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 (limited to 'display.c')
-rw-r--r-- | display.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |