summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibsource.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib/cfx_dibsource.h')
-rw-r--r--core/fxge/dib/cfx_dibsource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fxge/dib/cfx_dibsource.h b/core/fxge/dib/cfx_dibsource.h
index 0e7fb27dde..064dbe2055 100644
--- a/core/fxge/dib/cfx_dibsource.h
+++ b/core/fxge/dib/cfx_dibsource.h
@@ -44,6 +44,9 @@ class CFX_DIBSource : public Retainable {
int clip_left,
int clip_width) const = 0;
+ uint8_t* GetWritableScanline(int line) {
+ return const_cast<uint8_t*>(GetScanline(line));
+ }
int GetWidth() const { return m_Width; }
int GetHeight() const { return m_Height; }