summaryrefslogtreecommitdiff
path: root/libs/freeimage/src/FreeImageToolkit
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2018-03-06 20:24:07 +0300
committerKirill Volinsky <mataes2007@gmail.com>2018-03-07 12:54:58 +0300
commitbebafc42ab6199e86d4c2c901fac8d091bfffef0 (patch)
treef3961879845e89688c6628dccf1a3c9cd3ebb9b3 /libs/freeimage/src/FreeImageToolkit
parent7e9fef8a6ff35c63f9217fcc618d77f660e45245 (diff)
some fixes
Diffstat (limited to 'libs/freeimage/src/FreeImageToolkit')
-rw-r--r--libs/freeimage/src/FreeImageToolkit/BSplineRotate.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/freeimage/src/FreeImageToolkit/BSplineRotate.cpp b/libs/freeimage/src/FreeImageToolkit/BSplineRotate.cpp
index 699d0ca99e..c58c46af2b 100644
--- a/libs/freeimage/src/FreeImageToolkit/BSplineRotate.cpp
+++ b/libs/freeimage/src/FreeImageToolkit/BSplineRotate.cpp
@@ -667,11 +667,7 @@ FreeImage_RotateEx(FIBITMAP *dib, double angle, double x_shift, double y_shift,
// allocate dst image
int width = FreeImage_GetWidth(dib);
int height = FreeImage_GetHeight(dib);
- if( bpp == 24 ) {
- dst = FreeImage_Allocate(width, height, bpp, FI_RGBA_RED_MASK, FI_RGBA_GREEN_MASK, FI_RGBA_BLUE_MASK);
- } else {
- dst = FreeImage_Allocate(width, height, bpp, FI_RGBA_RED_MASK, FI_RGBA_GREEN_MASK, FI_RGBA_BLUE_MASK);
- }
+ dst = FreeImage_Allocate(width, height, bpp, FI_RGBA_RED_MASK, FI_RGBA_GREEN_MASK, FI_RGBA_BLUE_MASK);
if(!dst) throw(1);
// allocate a temporary 8-bit dib (no need to build a palette)