diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 16:35:46 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 16:35:46 +0000 |
commit | 563cc280e4be0d630216494acdca2602c5651418 (patch) | |
tree | e0bd9eb7ee70e4e6b3ae89f5c524bc8d72a49971 /file.c | |
parent | [w3m-dev 03133] Re: w3mman.1 (diff) | |
download | w3m-563cc280e4be0d630216494acdca2602c5651418.tar.gz w3m-563cc280e4be0d630216494acdca2602c5651418.zip |
[w3m-dev 03132] Re: Reload image
* file.c (loadGeneralFile): b->type = "text/html"
* file.c (loadImageBuffer): comment out getImageSize()
image_flag = IMG_FLAG_AUTO
* file.c (openGeneralPagerBuffer): buf->type = "text/html"
* frame.c (resetFrameElement): if (buf->mailcap_source) ...
* frame.c (frame_download_source): if (buf->mailcap_source) ...
* main.c (vwSrc): #ifdef USE_IMAGE
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.85 2002/03/14 16:12:06 ukai Exp $ */ +/* $Id: file.c,v 1.86 2002/03/15 16:35:46 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -1977,11 +1977,11 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, } #ifdef USE_IMAGE else if (proc == loadImageBuffer) - b->type = b->real_type; + b->type = "text/html"; #endif #ifdef USE_GOPHER else if (proc == loadGopherDir) - b->type = b->real_type; + b->type = "text/html"; #endif else b->type = "text/plain"; @@ -6518,7 +6518,9 @@ loadImageBuffer(URLFile *uf, Buffer *newBuf) cache->loaded = IMG_FLAG_LOADED; cache->index = 0; +/* getImageSize(cache); +*/ image_buffer: tmp = Sprintf("<img src=\"%s\"><br><br>", html_quote(image->url)); @@ -6542,6 +6544,7 @@ loadImageBuffer(URLFile *uf, Buffer *newBuf) newBuf->topLine = newBuf->firstLine; newBuf->lastLine = newBuf->currentLine; newBuf->currentLine = newBuf->firstLine; + newBuf->image_flag = IMG_FLAG_AUTO; return newBuf; } #endif @@ -6738,7 +6741,7 @@ openGeneralPagerBuffer(InputStream stream) cur_baseURL = New(ParsedURL); parseURL("-", cur_baseURL, NULL); buf = loadImageBuffer(&uf, t_buf); - buf->type = t; + buf->type = "text/html"; } #endif else { |