summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/FreeImage/Conversion.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-03 14:34:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-03 14:34:48 +0000
commiteb680766d56e815086397361b286fd8055fb5377 (patch)
tree7994cdb0d9077f645ba7fd06bdd2cde32cf599d4 /plugins/AdvaImg/src/FreeImage/Conversion.cpp
parentec61686c3d96f49eb7f40a4208690a0781d63e29 (diff)
FreeImage updated to 3.15.4
removed not used formats git-svn-id: http://svn.miranda-ng.org/main/trunk@2926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/Conversion.cpp')
-rw-r--r--plugins/AdvaImg/src/FreeImage/Conversion.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/Conversion.cpp b/plugins/AdvaImg/src/FreeImage/Conversion.cpp
index 3c14bab9dd..04cec65ab5 100644
--- a/plugins/AdvaImg/src/FreeImage/Conversion.cpp
+++ b/plugins/AdvaImg/src/FreeImage/Conversion.cpp
@@ -145,7 +145,7 @@ _convertCMYKtoRGBA(unsigned width, unsigned height, BYTE* line_start, unsigned p
BOOL
ConvertCMYKtoRGBA(FIBITMAP* dib) {
- if (!FreeImage_HasPixels(dib)) {
+ if(!FreeImage_HasPixels(dib)) {
return FALSE;
}
@@ -294,7 +294,7 @@ _convertLABtoRGB(unsigned width, unsigned height, BYTE* line_start, unsigned pit
BOOL
ConvertLABtoRGB(FIBITMAP* dib) {
- if (!FreeImage_HasPixels(dib)) {
+ if(!FreeImage_HasPixels(dib)) {
return FALSE;
}
@@ -330,7 +330,7 @@ ConvertLABtoRGB(FIBITMAP* dib) {
FIBITMAP*
RemoveAlphaChannel(FIBITMAP* src) {
- if (!FreeImage_HasPixels(src)) {
+ if(!FreeImage_HasPixels(src)) {
return NULL;
}
@@ -367,10 +367,10 @@ FreeImage_ColorQuantize(FIBITMAP *dib, FREE_IMAGE_QUANTIZE quantize) {
FIBITMAP * DLL_CALLCONV
FreeImage_ColorQuantizeEx(FIBITMAP *dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, int ReserveSize, RGBQUAD *ReservePalette) {
- if ( PaletteSize < 2 ) PaletteSize = 2;
- if ( PaletteSize > 256 ) PaletteSize = 256;
- if ( ReserveSize < 0 ) ReserveSize = 0;
- if ( ReserveSize > PaletteSize ) ReserveSize = PaletteSize;
+ if( PaletteSize < 2 ) PaletteSize = 2;
+ if( PaletteSize > 256 ) PaletteSize = 256;
+ if( ReserveSize < 0 ) ReserveSize = 0;
+ if( ReserveSize > PaletteSize ) ReserveSize = PaletteSize;
if (FreeImage_HasPixels(dib)) {
if (FreeImage_GetBPP(dib) == 24) {
switch(quantize) {