diff options
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r-- | w3mimgdisplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c index c151b12..2a798b1 100644 --- a/w3mimgdisplay.c +++ b/w3mimgdisplay.c @@ -1,4 +1,4 @@ -/* $Id: w3mimgdisplay.c,v 1.5 2002/07/18 06:49:39 ukai Exp $ */ +/* $Id: w3mimgdisplay.c,v 1.6 2002/07/22 16:17:32 ukai Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -99,10 +99,10 @@ main(int argc, char **argv) case '5': 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); + int w, h; + if (w_op->get_image_size(w_op, &img, &buf[2], &w, &h)) { + fprintf(stdout, "%d %d\n", w, h); fflush(stdout); - w_op->free_image(w_op, &img); } } break; |