Index: core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
index 954d3886b5a4477af049274f79fb2d96850e414b..b91f258371462e81363fb4a5b1cdd7eafd95e0e5 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
@@ -247,12 +247,11 @@ void CPDF_DIBTransferFunc::TranslateScanline(uint8_t* dest_buf, |
*dest_buf++ = m_RampR[*(src_buf++)]; |
if (!bSkip) { |
*dest_buf++ = *src_buf; |
- } |
#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
- else { |
+ } else { |
dest_buf++; |
- } |
#endif |
+ } |
src_buf++; |
} |
break; |
@@ -284,7 +283,7 @@ void CPDF_DIBTransferFunc::TranslateDownSamples(uint8_t* dest_buf, |
dest_buf++; |
src_buf++; |
} |
- } else |
+ } else { |
#endif |
for (int i = 0; i < pixels; i++) { |
*dest_buf++ = m_RampB[*(src_buf++)]; |
@@ -292,6 +291,9 @@ void CPDF_DIBTransferFunc::TranslateDownSamples(uint8_t* dest_buf, |
*dest_buf++ = m_RampR[*(src_buf++)]; |
*dest_buf++ = *(src_buf++); |
} |
+#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
+ } |
+#endif |
} |
} |
CPDF_ImageRenderer::CPDF_ImageRenderer() { |