openbsd-ports/graphics/imlib/patches/patch-gdk_imlib_io-bmp_c
espie 2bb4c8cdd1 fix inane typo.
Recognize bmp 16 bpp much better.
2001-03-13 20:28:59 +00:00

16 lines
669 B
Plaintext

$OpenBSD: patch-gdk_imlib_io-bmp_c,v 1.1 2001/03/13 20:28:59 espie Exp $
--- gdk_imlib/io-bmp.c.orig Tue Mar 13 20:01:30 2001
+++ gdk_imlib/io-bmp.c Tue Mar 13 20:01:58 2001
@@ -56,9 +56,9 @@ loader_bmp (FILE *file, int *w, int *h,
planes = (int)word;
fread(&word, 2, 1, file);
bpp = (int)word;
- if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp != 24 && bpp != 32)
+ if (bpp != 1 && bpp != 4 && bpp != 8 && bpp != 16 && bpp != 24 && bpp != 32)
{
- fprintf(stderr, "IMLIB ERROR: unknown bitdepth in file\n");
+ fprintf(stderr, "IMLIB ERROR: unknown bitdepth %d in file\n", bpp);
return NULL;
}
fread(dbuf, 4, 4, file);