diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_devicecs.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_devicecs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_devicecs.cpp b/core/fpdfapi/page/cpdf_devicecs.cpp index 9eb4123b25..bf9b3768e7 100644 --- a/core/fpdfapi/page/cpdf_devicecs.cpp +++ b/core/fpdfapi/page/cpdf_devicecs.cpp @@ -71,7 +71,10 @@ uint32_t CPDF_DeviceCS::v_Load(CPDF_Document* pDoc, return 0; } -bool CPDF_DeviceCS::GetRGB(float* pBuf, float* R, float* G, float* B) const { +bool CPDF_DeviceCS::GetRGB(const float* pBuf, + float* R, + float* G, + float* B) const { switch (m_Family) { case PDFCS_DEVICEGRAY: *R = NormalizeChannel(*pBuf); |