diff options
author | Gregory Montoir | 2005-04-02 17:19:44 +0000 |
---|---|---|
committer | Gregory Montoir | 2005-04-02 17:19:44 +0000 |
commit | 7b88503437b83df8fc9cc59daba390bd8ed2f220 (patch) | |
tree | 7ed4a0a612389200038a33c3f2dcdd7cbf1ca558 /scumm/intern.h | |
parent | 1f719929e9908fc27dbebb859a0291b24fd20504 (diff) | |
download | scummvm-rg350-7b88503437b83df8fc9cc59daba390bd8ed2f220.tar.gz scummvm-rg350-7b88503437b83df8fc9cc59daba390bd8ed2f220.tar.bz2 scummvm-rg350-7b88503437b83df8fc9cc59daba390bd8ed2f220.zip |
initial implementation of o72_arrayOps_127 and o90_sortArray
svn-id: r17337
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index ca923e6814..296402358d 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -739,6 +739,10 @@ protected: virtual void writeArray(int array, int idx2, int idx1, int value); void redimArray(int arrayId, int newDim2start, int newDim2end, int newDim1start, int newDim1end, int type); + void checkArrayLimits(int array, int dim2start, int dim2end, int dim1start, int dim1end); + void copyArray(int array1, int a1_dim2start, int a1_dim2end, int a1_dim1start, int a1_dim1end, + int array2, int a2_dim2start, int a2_dim2end, int a2_dim1start, int a2_dim1end); + void copyArrayHelper(ArrayHeader *ah, int idx2, int idx1, int len1, byte **data, int *size, int *num); virtual int setupStringArray(int size); int readFileToArray(int slot, int32 size); void writeFileFromArray(int slot, int resID); @@ -902,6 +906,9 @@ protected: int isWizPixelNonTransparent(int resnum, int state, int x, int y, int flags); uint8 getWizPixelColor(int resnum, int state, int x, int y, int flags); int computeWizHistogram(int resnum, int state, int x, int y, int w, int h); + + void getArrayDim(int array, int *dim2start, int *dim2end, int *dim1start, int *dim1end); + void sortArray(int array, int dim2start, int dim2end, int dim1start, int dim1end, int sortOrder); uint8 *getHEPalette(int palSlot); void setHEPaletteColor(int palSlot, uint8 color, uint8 r, uint8 g, uint8 b); |