aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-02-14 15:10:29 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-02-14 15:10:29 +0000
commit838e657a013535619f20012c39f73558228ef17e (patch)
tree0ddae88cd391d0fd83c6bb36bd08baf2e0445874 /main.c
parent[w3m-dev 03055] LIB_DIR -> w3m_lib_dir() (diff)
downloadw3m-838e657a013535619f20012c39f73558228ef17e.tar.gz
w3m-838e657a013535619f20012c39f73558228ef17e.zip
[w3m-dev 03056] DISPLAY_IMAGE, STOP_IMAGE don't work.
* main.c (dispI): fix DISPLAY_IMAGE * main.c (stopI): fix STOP_IMAGE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.c b/main.c
index c88c9e0..852de83 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.82 2002/02/13 17:24:24 ukai Exp $ */
+/* $Id: main.c,v 1.83 2002/02/14 15:10:30 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -4541,14 +4541,12 @@ dispI(void)
initImage();
if (!activeImage)
return;
- if (!displayImage || Currentbuf->image_flag == IMG_FLAG_SKIP) {
- displayImage = TRUE;
- if (!(Currentbuf->type && !strcmp(Currentbuf->type, "text/html")))
- return;
- Currentbuf->image_flag = IMG_FLAG_AUTO;
- Currentbuf->need_reshape = TRUE;
- displayBuffer(Currentbuf, B_REDRAW_IMAGE);
- }
+ displayImage = TRUE;
+ if (!(Currentbuf->type && !strcmp(Currentbuf->type, "text/html")))
+ return;
+ Currentbuf->image_flag = IMG_FLAG_AUTO;
+ Currentbuf->need_reshape = TRUE;
+ displayBuffer(Currentbuf, B_REDRAW_IMAGE);
}
void
@@ -4556,8 +4554,10 @@ stopI(void)
{
if (!activeImage)
return;
+ if (!(Currentbuf->type && !strcmp(Currentbuf->type, "text/html")))
+ return;
Currentbuf->image_flag = IMG_FLAG_SKIP;
- displayBuffer(Currentbuf, B_NORMAL);
+ displayBuffer(Currentbuf, B_REDRAW_IMAGE);
}
#endif