summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
index 1f4ba62b0a..e62290fdbb 100644
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
@@ -1473,6 +1473,11 @@ void CPDF_DIBSource::DownSampleScanline32Bit(int orig_Bpp,
src_bit_pos += m_bpc;
}
pSrcPixel = extracted_components;
+ } else if (m_bpc == 16) {
+ for (FX_DWORD j = 0; j < m_nComponents; ++j) {
+ extracted_components[j] = pSrcPixel[j * 2];
+ }
+ pSrcPixel = extracted_components;
}
if (m_pColorSpace) {