aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimgdisplay.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-07-18 06:27:23 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-07-18 06:27:23 +0000
commitd8dccd0475b6806d7ba4614f26015831f267d893 (patch)
treec48ee34365c59f06141d5e66b29aa28ec23aacdd /w3mimgdisplay.c
parent[w3m-dev 03270] Re: w3m-img for framebuffer merged (diff)
downloadw3m-d8dccd0475b6806d7ba4614f26015831f267d893.tar.gz
w3m-d8dccd0475b6806d7ba4614f26015831f267d893.zip
* w3mimgdisplay.c (main): '5' for w3mimgsize
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r--w3mimgdisplay.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c
index e450871..31c4940 100644
--- a/w3mimgdisplay.c
+++ b/w3mimgdisplay.c
@@ -1,4 +1,4 @@
-/* $Id: w3mimgdisplay.c,v 1.3 2002/07/17 20:58:48 ukai Exp $ */
+/* $Id: w3mimgdisplay.c,v 1.4 2002/07/18 06:27:23 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -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();