summaryrefslogtreecommitdiff
path: root/converters/wv/patches/patch-ac
blob: f723b2d5b5448005e05cf393830cf1744d3ed558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ac,v 1.1 2000/09/02 17:52:54 wiz Exp $

--- bmptopng.c.orig	Mon Dec  6 21:50:57 1999
+++ bmptopng.c
@@ -18,7 +18,7 @@
 	GetImageInfo (&image_info);
 	sprintf(buffer, "%s.bmp",prefix);
 	strcpy (image_info.filename, buffer);
-	image = ReadBMPImage (&image_info);
+	image = ReadImage (&image_info);
 	if (image == (Image *) NULL)
 		return(1);
 	sprintf(buffer, "%s.png",prefix);
@@ -26,7 +26,7 @@
 	strcpy(image_info.filename,buffer);
 	SetImageInfo(&image_info,1);
 	strcpy (image->filename, buffer);
-	WritePNGImage (&image_info, image);
+	WriteImage (&image_info, image);
 
 	DestroyImage (image);
 	return(0);