aboutsummaryrefslogtreecommitdiffstats
path: root/rd
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-01-26 14:56:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-01-26 14:56:13 +0100
commitecc91c35b0c1c672f3a89865eb9c5e240ad5b0ef (patch)
treec85381206eed7ee1d9009c8426d86b1bf48f6963 /rd
parentc7cffca26b92eeb863b636b688358cde5e1f1807 (diff)
downloadfbida-ecc91c35b0c1c672f3a89865eb9c5e240ad5b0ef.tar.gz
whitespace cleanup
Diffstat (limited to 'rd')
-rw-r--r--rd/read-png.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rd/read-png.c b/rd/read-png.c
index c4f82d2..92e7b4a 100644
--- a/rd/read-png.c
+++ b/rd/read-png.c
@@ -36,7 +36,7 @@ png_init(FILE *fp, char *filename, unsigned int page,
.gray = 192,
};
int unit;
-
+
h = malloc(sizeof(*h));
memset(h,0,sizeof(*h));
@@ -62,7 +62,7 @@ png_init(FILE *fp, char *filename, unsigned int page,
if (debug)
fprintf(stderr,"png: color_type=%s #1\n",ct[h->color_type]);
i->npages = 1;
-
+
png_set_packing(h->png);
if (bit_depth == 16)
png_set_strip_16(h->png);
@@ -83,9 +83,9 @@ png_init(FILE *fp, char *filename, unsigned int page,
h->color_type = png_get_color_type(h->png, h->info);
if (debug)
fprintf(stderr,"png: color_type=%s #2\n",ct[h->color_type]);
-
+
h->image = malloc(i->width * i->height * 4);
-
+
for (pass = 0; pass < number_passes-1; pass++) {
if (debug)
fprintf(stderr,"png: pass #%d\n",pass);