summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/FreeImage/Conversion4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/Conversion4.cpp')
-rw-r--r--plugins/AdvaImg/src/FreeImage/Conversion4.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/Conversion4.cpp b/plugins/AdvaImg/src/FreeImage/Conversion4.cpp
index 7c09ac824a..13048b6d3f 100644
--- a/plugins/AdvaImg/src/FreeImage/Conversion4.cpp
+++ b/plugins/AdvaImg/src/FreeImage/Conversion4.cpp
@@ -29,7 +29,7 @@
void DLL_CALLCONV
FreeImage_ConvertLine1To4(BYTE *target, BYTE *source, int width_in_pixels) {
BOOL hinibble = TRUE;
- for (int cols = 0; cols < width_in_pixels; cols++) {
+ for (int cols = 0; cols < width_in_pixels; cols++){
if (hinibble == TRUE){
target[cols >> 1] = ((source[cols >> 3] & (0x80 >> (cols & 0x07))) != 0 ? 15 : 0) << 4;
}
@@ -46,7 +46,7 @@ FreeImage_ConvertLine8To4(BYTE *target, BYTE *source, int width_in_pixels, RGBQU
BOOL hinibble = TRUE;
BYTE index;
- for (int cols = 0; cols < width_in_pixels; cols++) {
+ for (int cols = 0; cols < width_in_pixels; cols++){
index = GREY(palette[source[cols]].rgbRed, palette[source[cols]].rgbGreen, palette[source[cols]].rgbBlue);
if (hinibble) {
target[cols >> 1] = (index & 0xF0);
@@ -140,7 +140,7 @@ FreeImage_ConvertLine32To4(BYTE *target, BYTE *source, int width_in_pixels) {
FIBITMAP * DLL_CALLCONV
FreeImage_ConvertTo4Bits(FIBITMAP *dib) {
- if (!FreeImage_HasPixels(dib)) return NULL;
+ if(!FreeImage_HasPixels(dib)) return NULL;
const int bpp = FreeImage_GetBPP(dib);