fix indent
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: fb_gdkpixbuf.c,v 1.11 2003/03/26 15:14:23 ukai Exp $ */
|
/* $Id: fb_gdkpixbuf.c,v 1.12 2003/03/26 15:34:55 ukai Exp $ */
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
fb_gdkpixbuf.c 0.3 Copyright (C) 2002, hito
|
fb_gdkpixbuf.c 0.3 Copyright (C) 2002, hito
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
@@ -12,7 +12,7 @@ static void draw(FB_IMAGE * img, int bg, int x, int y, int w, int h,
|
|||||||
static GdkPixbuf *resize_image(GdkPixbuf * pixbuf, int width, int height);
|
static GdkPixbuf *resize_image(GdkPixbuf * pixbuf, int width, int height);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_animation_size(GdkPixbufAnimation *animation, int *w, int *h)
|
get_animation_size(GdkPixbufAnimation * animation, int *w, int *h)
|
||||||
{
|
{
|
||||||
GList *frames;
|
GList *frames;
|
||||||
int iw, ih, n, i;
|
int iw, ih, n, i;
|
||||||
@@ -28,9 +28,9 @@ get_animation_size(GdkPixbufAnimation *animation, int *w, int *h)
|
|||||||
frame = (GdkPixbufFrame *) g_list_nth_data(frames, i);
|
frame = (GdkPixbufFrame *) g_list_nth_data(frames, i);
|
||||||
pixbuf = gdk_pixbuf_frame_get_pixbuf(frame);
|
pixbuf = gdk_pixbuf_frame_get_pixbuf(frame);
|
||||||
iw = gdk_pixbuf_frame_get_x_offset(frame)
|
iw = gdk_pixbuf_frame_get_x_offset(frame)
|
||||||
+gdk_pixbuf_get_width(pixbuf);
|
+ gdk_pixbuf_get_width(pixbuf);
|
||||||
ih = gdk_pixbuf_frame_get_y_offset(frame)
|
ih = gdk_pixbuf_frame_get_y_offset(frame)
|
||||||
+ gdk_pixbuf_get_height(pixbuf);
|
+ gdk_pixbuf_get_height(pixbuf);
|
||||||
if (iw > *w)
|
if (iw > *w)
|
||||||
*w = iw;
|
*w = iw;
|
||||||
if (ih > *h)
|
if (ih > *h)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: x11_w3mimg.c,v 1.16 2003/03/26 15:34:20 ukai Exp $ */
|
/* $Id: x11_w3mimg.c,v 1.17 2003/03/26 15:35:20 ukai Exp $ */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -43,7 +43,7 @@ struct x11_image {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_animation_size(GdkPixbufAnimation *animation, int *w, int *h)
|
get_animation_size(GdkPixbufAnimation * animation, int *w, int *h)
|
||||||
{
|
{
|
||||||
GList *frames;
|
GList *frames;
|
||||||
int iw, ih, n, i;
|
int iw, ih, n, i;
|
||||||
@@ -59,9 +59,9 @@ get_animation_size(GdkPixbufAnimation *animation, int *w, int *h)
|
|||||||
frame = (GdkPixbufFrame *) g_list_nth_data(frames, i);
|
frame = (GdkPixbufFrame *) g_list_nth_data(frames, i);
|
||||||
pixbuf = gdk_pixbuf_frame_get_pixbuf(frame);
|
pixbuf = gdk_pixbuf_frame_get_pixbuf(frame);
|
||||||
iw = gdk_pixbuf_frame_get_x_offset(frame)
|
iw = gdk_pixbuf_frame_get_x_offset(frame)
|
||||||
+gdk_pixbuf_get_width(pixbuf);
|
+ gdk_pixbuf_get_width(pixbuf);
|
||||||
ih = gdk_pixbuf_frame_get_y_offset(frame)
|
ih = gdk_pixbuf_frame_get_y_offset(frame)
|
||||||
+ gdk_pixbuf_get_height(pixbuf);
|
+ gdk_pixbuf_get_height(pixbuf);
|
||||||
if (iw > *w)
|
if (iw > *w)
|
||||||
*w = iw;
|
*w = iw;
|
||||||
if (ih > *h)
|
if (ih > *h)
|
||||||
@@ -366,7 +366,8 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h)
|
|||||||
width = gdk_pixbuf_get_width(pixbuf);
|
width = gdk_pixbuf_get_width(pixbuf);
|
||||||
height = gdk_pixbuf_get_height(pixbuf);
|
height = gdk_pixbuf_get_height(pixbuf);
|
||||||
|
|
||||||
if (delay >= 0) ximg->delay = delay;
|
if (delay >= 0)
|
||||||
|
ximg->delay = delay;
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user