diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-28 16:21:54 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-28 16:21:54 +0000 |
commit | 98f9b038f00664eb05c5f13eae0a35c4f533e867 (patch) | |
tree | 8a585c12b912968251849c1388c2796b9e831e39 /file.c | |
parent | [w3m-dev 03072] Proxy-Authorization (Re: Re: https through proxy) (diff) | |
download | w3m-98f9b038f00664eb05c5f13eae0a35c4f533e867.tar.gz w3m-98f9b038f00664eb05c5f13eae0a35c4f533e867.zip |
[w3m-dev 03073] frame + image
* file.c (loadGeneralFile): w3m_dump & ~DUMP_FRAME
* file.c (loadImageBuffer): comment out if (frame_source)
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.72 2002/02/28 16:15:41 ukai Exp $ */ +/* $Id: file.c,v 1.73 2002/02/28 16:21:54 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -1840,7 +1840,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, proc = loadBuffer; #ifdef USE_IMAGE else if (activeImage && displayImage && !useExtImageViewer && - !w3m_dump && !strncasecmp(t, "image/", 6)) + !(w3m_dump & ~DUMP_FRAME) && !strncasecmp(t, "image/", 6)) proc = loadImageBuffer; #endif #ifdef USE_GOPHER @@ -6448,12 +6448,16 @@ loadImageBuffer(URLFile *uf, Buffer *newBuf) tmp = Sprintf("<img src=\"%s\"><br><br>", html_quote(image->url)); if (newBuf == NULL) newBuf = newBuffer(INIT_BUFFER_WIDTH); +/* if (frame_source) { +*/ tmpf = tmpfname(TMPF_SRC, ".html"); src = fopen(tmpf->ptr, "w"); newBuf->sourcefile = tmpf->ptr; pushText(fileToDelete, tmpf->ptr); +/* } +*/ init_stream(&f, SCM_LOCAL, newStrStream(tmp)); loadHTMLstream(&f, newBuf, src, TRUE); if (src) |