From 838e657a013535619f20012c39f73558228ef17e Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 14 Feb 2002 15:10:29 +0000 Subject: [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 --- main.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'main.c') 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 @@ -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 -- cgit v1.2.3