commit ed35763382f58117701ab6a70bd19c5221d14c54
parent 963828c2e223402fa1bc5d6c057a76b47b988462
Author: ukai <ukai>
Date: Thu, 14 Feb 2002 15:10:29 +0000
[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:
2 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-15 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03056] DISPLAY_IMAGE, STOP_IMAGE don't work.
+ * main.c (dispI): fix DISPLAY_IMAGE
+ * main.c (stopI): fix STOP_IMAGE
+
2002-02-14 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03055] LIB_DIR -> w3m_lib_dir()
diff --git a/main.c b/main.c
@@ -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