diff options
author | Max Horn | 2003-05-25 12:08:01 +0000 |
---|---|---|
committer | Max Horn | 2003-05-25 12:08:01 +0000 |
commit | 9b70fee5f39d02b3ea99c9aef4519f00ea433a58 (patch) | |
tree | daa052515ac117e8e6fceae69016e6bd338611e6 /common/scaler.h | |
parent | e827a569d2cb7936bd01b349e788fabd5c244f41 (diff) | |
download | scummvm-rg350-9b70fee5f39d02b3ea99c9aef4519f00ea433a58.tar.gz scummvm-rg350-9b70fee5f39d02b3ea99c9aef4519f00ea433a58.tar.bz2 scummvm-rg350-9b70fee5f39d02b3ea99c9aef4519f00ea433a58.zip |
changed scaler proc signature so that srcPtr is const (this can help optimizer by simplifying aliasing detection; thanks to Bertrand Augereau for pointing this out)
svn-id: r7939
Diffstat (limited to 'common/scaler.h')
-rw-r--r-- | common/scaler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/scaler.h b/common/scaler.h index 668b02cb95..a743ee063e 100644 --- a/common/scaler.h +++ b/common/scaler.h @@ -23,8 +23,11 @@ extern int Init_2xSaI (uint32 BitFormat); +typedef void ScalerProc(const uint8 *srcPtr, uint32 srcPitch, + uint8 *dstPtr, uint32 dstPitch, int width, int height); + #define DECLARE_SCALER(x) \ - extern void x(uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, \ + extern void x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, \ uint32 dstPitch, int width, int height) DECLARE_SCALER(_2xSaI); |