w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 336dd5ea67f7b4b351efb4de35b4ea0240742c62
parent 81a021df4826850368a84cd8a17854a90d48e9e4
Author: ukai <ukai>
Date:   Thu, 18 Jul 2002 06:27:23 +0000

* w3mimgdisplay.c (main): '5' for w3mimgsize
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 4++++
Mw3mimgdisplay.c | 14+++++++-------
2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +2002-07-18 Fumitoshi UKAI <ukai@debian.or.jp> + + * w3mimgdisplay.c (main): '5' for w3mimgsize + 2002-07-18 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp> * [w3m-dev 03270] Re: w3m-img for framebuffer merged diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c @@ -74,16 +74,16 @@ main(int argc, char **argv) fputs("\n", stdout); fflush(stdout); break; -#if 0 /* def USE_W3MIMG_FB */ case '5': - if (w3mimg_mode == W3MIMG_FB_MODE) { - IMAGE *im = fb_load_image(&buf[2], 0, 0); - fprintf(stdout, "%d %d\n", im->width, im->height); - fflush(stdout); - fb_free_image(im); + if (w_op->init(w_op)) { + W3MImage img; + if (w_op->load_image(w_op, &img, &buf[2], 0, 0)) { + fprintf(stdout, "%d %d\n", img.width, img.height); + fflush(stdout); + w_op->free_image(w_op, &img); + } } break; -#endif } } ClearImage();