fix indent
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: fb_gdkpixbuf.c,v 1.7 2002/07/29 15:25:37 ukai Exp $ */
 | 
			
		||||
/* $Id: fb_gdkpixbuf.c,v 1.8 2002/09/09 14:00:18 ukai Exp $ */
 | 
			
		||||
/**************************************************************************
 | 
			
		||||
                fb_gdkpixbuf.c 0.3 Copyright (C) 2002, hito
 | 
			
		||||
 **************************************************************************/
 | 
			
		||||
@@ -26,7 +26,8 @@ get_image_size(char *filename, int *w, int *h)
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
FB_IMAGE ** fb_image_load(char *filename, int w, int h)
 | 
			
		||||
FB_IMAGE **
 | 
			
		||||
fb_image_load(char *filename, int w, int h)
 | 
			
		||||
{
 | 
			
		||||
    GdkPixbufAnimation *animation;
 | 
			
		||||
    GList *frames;
 | 
			
		||||
@@ -47,7 +48,8 @@ FB_IMAGE ** fb_image_load(char *filename, int w, int h)
 | 
			
		||||
	w = fw;
 | 
			
		||||
	h = fh;
 | 
			
		||||
	ratio_w = ratio_h = 1;
 | 
			
		||||
    } else {
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
	ratio_w = 1.0 * w / fw;
 | 
			
		||||
	ratio_h = 1.0 * h / fh;
 | 
			
		||||
    }
 | 
			
		||||
@@ -66,7 +68,8 @@ FB_IMAGE ** fb_image_load(char *filename, int w, int h)
 | 
			
		||||
	height = gdk_pixbuf_get_height(org_pixbuf);
 | 
			
		||||
	if (ofstx == 0 && ofsty == 0 && width == fw && height == fh) {
 | 
			
		||||
	    pixbuf = resize_image(org_pixbuf, w, h);
 | 
			
		||||
	} else {
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
	    pixbuf =
 | 
			
		||||
		resize_image(org_pixbuf, width * ratio_w, height * ratio_h);
 | 
			
		||||
	    ofstx *= ratio_w;
 | 
			
		||||
@@ -122,7 +125,8 @@ draw(FB_IMAGE * img, int bg, int x, int y, int w, int h, GdkPixbuf * pixbuf)
 | 
			
		||||
	    if (alpha && pixels[offset + 3] == 0) {
 | 
			
		||||
		if (bg)
 | 
			
		||||
		    fb_image_pset(img, i + x, j + y, bg_r, bg_g, bg_b);
 | 
			
		||||
	    } else {
 | 
			
		||||
	    }
 | 
			
		||||
	    else {
 | 
			
		||||
		fb_image_pset(img, i + x, j + y, r, g, b);
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: fb_imlib2.c,v 1.7 2002/07/29 15:25:37 ukai Exp $ */
 | 
			
		||||
/* $Id: fb_imlib2.c,v 1.8 2002/09/09 14:00:42 ukai Exp $ */
 | 
			
		||||
/**************************************************************************
 | 
			
		||||
                fb_imlib2.c 0.3 Copyright (C) 2002, hito
 | 
			
		||||
 **************************************************************************/
 | 
			
		||||
@@ -89,7 +89,8 @@ draw(FB_IMAGE * img, Imlib_Image image)
 | 
			
		||||
 | 
			
		||||
	    if (a == 0) {
 | 
			
		||||
		fb_image_pset(img, i, j, bg_r, bg_g, bg_b);
 | 
			
		||||
	    } else {
 | 
			
		||||
	    }
 | 
			
		||||
	    else {
 | 
			
		||||
		fb_image_pset(img, i, j, r, g, b);
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: fb_w3mimg.c,v 1.3 2002/07/29 15:25:37 ukai Exp $ */
 | 
			
		||||
/* $Id: fb_w3mimg.c,v 1.4 2002/09/09 14:00:49 ukai Exp $ */
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
@@ -73,8 +73,7 @@ w3mfb_load_image(w3mimg_op *self, W3MImage *img, char *fname, int w, int h)
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
w3mfb_show_image(w3mimg_op * self, W3MImage * img, int sx, int sy,
 | 
			
		||||
		 int sw, int sh,
 | 
			
		||||
		 int x, int y)
 | 
			
		||||
		 int sw, int sh, int x, int y)
 | 
			
		||||
{
 | 
			
		||||
    int i;
 | 
			
		||||
    FB_IMAGE **frame;
 | 
			
		||||
@@ -87,8 +86,7 @@ w3mfb_show_image(w3mimg_op *self, W3MImage *img, int sx, int sy,
 | 
			
		||||
    i = frame[0]->id;
 | 
			
		||||
    fb_image_draw(frame[i],
 | 
			
		||||
		  x + self->offset_x, y + self->offset_y,
 | 
			
		||||
		  sx, sy,
 | 
			
		||||
		  (sw ? sw : img->width), (sh ? sh : img->height));
 | 
			
		||||
		  sx, sy, (sw ? sw : img->width), (sh ? sh : img->height));
 | 
			
		||||
    if (frame[0]->num > 1) {
 | 
			
		||||
	if (frame[1]->id > WAIT_CNT) {
 | 
			
		||||
	    frame[1]->id = 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: w3mimg.h,v 1.4 2002/07/22 16:17:32 ukai Exp $ */
 | 
			
		||||
/* $Id: w3mimg.h,v 1.5 2002/09/09 13:59:24 ukai Exp $ */
 | 
			
		||||
#include "config.h"
 | 
			
		||||
 | 
			
		||||
#ifdef USE_W3MIMG_FB
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: x11_w3mimg.c,v 1.5 2002/07/22 16:17:32 ukai Exp $ */
 | 
			
		||||
/* $Id: x11_w3mimg.c,v 1.6 2002/09/09 13:59:09 ukai Exp $ */
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
@@ -195,7 +195,8 @@ x11_free_image(w3mimg_op * self, W3MImage * img)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w, int *h)
 | 
			
		||||
x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w,
 | 
			
		||||
		   int *h)
 | 
			
		||||
{
 | 
			
		||||
    struct x11_info *xi;
 | 
			
		||||
    ImlibImage *im;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user