diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-24 15:47:49 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-24 15:47:49 +0000 |
commit | be3a582bd49a2a75529c632e357a2e5caa54cfbc (patch) | |
tree | 5ea8b4c62fb6497130e41667725f568ecf4e5c5f | |
parent | [w3m-dev 03829] w3mimgdisplay -anim (diff) | |
download | w3m-be3a582bd49a2a75529c632e357a2e5caa54cfbc.tar.gz w3m-be3a582bd49a2a75529c632e357a2e5caa54cfbc.zip |
fix indent
Diffstat (limited to '')
-rw-r--r-- | w3mimg/fb/fb_gdkpixbuf.c | 4 | ||||
-rw-r--r-- | w3mimg/x11/x11_w3mimg.c | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/w3mimg/fb/fb_gdkpixbuf.c b/w3mimg/fb/fb_gdkpixbuf.c index e0c1775..75ad599 100644 --- a/w3mimg/fb/fb_gdkpixbuf.c +++ b/w3mimg/fb/fb_gdkpixbuf.c @@ -1,4 +1,4 @@ -/* $Id: fb_gdkpixbuf.c,v 1.9 2003/03/24 15:45:59 ukai Exp $ */ +/* $Id: fb_gdkpixbuf.c,v 1.10 2003/03/24 15:47:49 ukai Exp $ */ /************************************************************************** fb_gdkpixbuf.c 0.3 Copyright (C) 2002, hito **************************************************************************/ @@ -45,7 +45,7 @@ fb_image_load(char *filename, int w, int h, int max_anim) fh = gdk_pixbuf_animation_get_height(animation); n = gdk_pixbuf_animation_get_num_frames(animation); if (max_anim > 0) { - n = (max_anim > n)? n : max_anim; + n = (max_anim > n) ? n : max_anim; } if (w < 1 || h < 1) { w = fw; diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c index 0be4cfe..698c33c 100644 --- a/w3mimg/x11/x11_w3mimg.c +++ b/w3mimg/x11/x11_w3mimg.c @@ -1,4 +1,4 @@ -/* $Id: x11_w3mimg.c,v 1.13 2003/03/24 15:46:00 ukai Exp $ */ +/* $Id: x11_w3mimg.c,v 1.14 2003/03/24 15:48:09 ukai Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -267,22 +267,22 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h) #elif defined(USE_IMLIB2) im = imlib_load_image(fname); if (!im) - return 0; + return 0; imlib_context_set_image(im); if (w <= 0) - w = imlib_image_get_width(); + w = imlib_image_get_width(); if (h <= 0) - h = imlib_image_get_height(); + h = imlib_image_get_height(); img->pixmap = (void *)XCreatePixmap(xi->display, xi->parent, w, h, DefaultDepth(xi->display, 0)); if (!img->pixmap) - return 0; + return 0; XSetForeground(xi->display, xi->imageGC, xi->background_pixel); XFillRectangle(xi->display, (Pixmap) img->pixmap, xi->imageGC, 0, 0, w, h); imlib_context_set_display(xi->display); imlib_context_set_visual(DefaultVisual(xi->display, 0)); imlib_context_set_colormap(DefaultColormap(xi->display, 0)); - imlib_context_set_drawable((Drawable)img->pixmap); + imlib_context_set_drawable((Drawable) img->pixmap); imlib_render_image_on_drawable_at_size(0, 0, w, h); imlib_free_image(); #elif defined(USE_GDKPIXBUF) @@ -295,7 +295,7 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h) ih = gdk_pixbuf_animation_get_height(animation); if (self->max_anim > 0) { - n = (self->max_anim > n)? n : self->max_anim; + n = (self->max_anim > n) ? n : self->max_anim; } if (w < 1 || h < 1) { @@ -486,7 +486,7 @@ x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w, #elif defined(USE_IMLIB2) im = imlib_load_image(fname); if (im == NULL) - return 0; + return 0; imlib_context_set_image(im); *w = imlib_image_get_width(); |