summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_imagestretcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib/cfx_imagestretcher.cpp')
-rw-r--r--core/fxge/dib/cfx_imagestretcher.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/fxge/dib/cfx_imagestretcher.cpp b/core/fxge/dib/cfx_imagestretcher.cpp
index 799b44432f..94c107b4a3 100644
--- a/core/fxge/dib/cfx_imagestretcher.cpp
+++ b/core/fxge/dib/cfx_imagestretcher.cpp
@@ -8,6 +8,8 @@
#include <climits>
+#include "core/fxge/dib/cfx_dibitmap.h"
+#include "core/fxge/dib/cfx_dibsource.h"
#include "core/fxge/dib/dib_int.h"
#include "core/fxge/fx_dib.h"
#include "third_party/base/ptr_util.h"
@@ -30,6 +32,13 @@ FXDIB_Format GetStretchedFormat(const CFX_DIBSource& src) {
return format;
}
+void CmykDecode(uint32_t cmyk, int& c, int& m, int& y, int& k) {
+ c = FXSYS_GetCValue(cmyk);
+ m = FXSYS_GetMValue(cmyk);
+ y = FXSYS_GetYValue(cmyk);
+ k = FXSYS_GetKValue(cmyk);
+}
+
} // namespace
CFX_ImageStretcher::CFX_ImageStretcher(