From 44b581745024bef1b83585dd4effe1f4aee2ad82 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 23 Oct 2008 16:27:23 +0000 Subject: [PATCH] libpipi: the GDI+ codec defaults to BMP when the file extension is unknown. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3078 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/codec/gdiplus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipi/codec/gdiplus.cpp b/pipi/codec/gdiplus.cpp index 9001fc4..fea7caf 100755 --- a/pipi/codec/gdiplus.cpp +++ b/pipi/codec/gdiplus.cpp @@ -90,6 +90,8 @@ extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name) fmt = L"image/png"; else if(strstr(name, ".tiff")) fmt = L"image/tiff"; + else /* if(strstr(name, ".bmp")) */ + fmt = L"image/bmp"; unsigned int num = 0, size = 0; Gdiplus::GetImageEncodersSize(&num, &size);