From be3a582bd49a2a75529c632e357a2e5caa54cfbc Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 24 Mar 2003 15:47:49 +0000 Subject: fix indent --- w3mimg/fb/fb_gdkpixbuf.c | 4 ++-- w3mimg/x11/x11_w3mimg.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'w3mimg') 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 #include #include @@ -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(); -- cgit v1.2.3