aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimg/x11/x11_w3mimg.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-04-03 16:36:33 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-04-03 16:36:33 +0000
commit4fadb14e79ba1044ce7204dfecf72c95339e6356 (patch)
tree9df76ebf9e237ba4502fbf31d6a5a232a0edf34c /w3mimg/x11/x11_w3mimg.c
parent[w3m-dev 03837] Re: gif animation with no delay_time (diff)
downloadw3m-4fadb14e79ba1044ce7204dfecf72c95339e6356.tar.gz
w3m-4fadb14e79ba1044ce7204dfecf72c95339e6356.zip
fix indent
Diffstat (limited to '')
-rw-r--r--w3mimg/x11/x11_w3mimg.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c
index 2a6c251..62e4ad1 100644
--- a/w3mimg/x11/x11_w3mimg.c
+++ b/w3mimg/x11/x11_w3mimg.c
@@ -1,4 +1,4 @@
-/* $Id: x11_w3mimg.c,v 1.19 2003/04/03 16:35:49 ukai Exp $ */
+/* $Id: x11_w3mimg.c,v 1.20 2003/04/03 16:36:54 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -58,9 +58,9 @@ get_animation_size(GdkPixbufAnimation * animation, int *w, int *h, int *delay)
int tmp;
frame = (GdkPixbufFrame *) g_list_nth_data(frames, i);
- tmp = gdk_pixbuf_frame_get_delay_time(frame);
+ tmp = gdk_pixbuf_frame_get_delay_time(frame);
if (tmp > d)
- d = tmp;
+ d = tmp;
pixbuf = gdk_pixbuf_frame_get_pixbuf(frame);
iw = gdk_pixbuf_frame_get_x_offset(frame)
+ gdk_pixbuf_get_width(pixbuf);
@@ -72,7 +72,7 @@ get_animation_size(GdkPixbufAnimation * animation, int *w, int *h, int *delay)
*h = ih;
}
if (delay)
- *delay = d;
+ *delay = d;
}
#endif
@@ -331,11 +331,12 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h)
get_animation_size(animation, &iw, &ih, &delay);
if (delay <= 0)
- max_anim = -1;
+ max_anim = -1;
if (max_anim < 0) {
- frame_num = (-max_anim > n) ? n : -max_anim;
- } else if (max_anim > 0) {
+ frame_num = (-max_anim > n) ? n : -max_anim;
+ }
+ else if (max_anim > 0) {
frame_num = n = (max_anim > n) ? n : max_anim;
}
@@ -359,8 +360,9 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h)
int width, height, ofstx, ofsty;
if (max_anim < 0) {
- i = (j - n + frame_num > 0)? (j - n + frame_num): 0;
- } else {
+ i = (j - n + frame_num > 0) ? (j - n + frame_num) : 0;
+ }
+ else {
i = j;
}
frame = (GdkPixbufFrame *) g_list_nth_data(frames, j);