diff options
author | Johannes Schickel | 2005-10-22 12:59:16 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-10-22 12:59:16 +0000 |
commit | d8aa978ae74ae7ee00c38cb3aa0ec47050e47d46 (patch) | |
tree | 087cdfe6510c7a285d68e03e97fc3da53ef96f0e /kyra/screen.h | |
parent | f8981765e924ecd632a99072287af7254eb9c4fc (diff) | |
download | scummvm-rg350-d8aa978ae74ae7ee00c38cb3aa0ec47050e47d46.tar.gz scummvm-rg350-d8aa978ae74ae7ee00c38cb3aa0ec47050e47d46.tar.bz2 scummvm-rg350-d8aa978ae74ae7ee00c38cb3aa0ec47050e47d46.zip |
Made the shape handling endian safe, also renamned some functions and
variables. (mostly the *Helper functions and decodeShape -> encodeShape)
But kept mouse handling.
svn-id: r19241
Diffstat (limited to 'kyra/screen.h')
-rw-r--r-- | kyra/screen.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kyra/screen.h b/kyra/screen.h index 692cc659dc..2642ba782a 100644 --- a/kyra/screen.h +++ b/kyra/screen.h @@ -115,7 +115,7 @@ public: static void decodeFrame4(const uint8 *src, uint8 *dst, uint32 dstSize); static void decodeFrameDelta(uint8 *dst, const uint8 *src); static void decodeFrameDeltaPage(uint8 *dst, const uint8 *src, int pitch); - uint8 *decodeShape(int x, int y, int w, int h, int flags); + uint8 *encodeShape(int x, int y, int w, int h, int flags); void copyRegionToBuffer(int pageNum, int x, int y, int w, int h, uint8 *dest); int getRectSize(int x, int y); @@ -132,9 +132,9 @@ public: typedef void (Screen::*DrawShapePlotPixelCallback)(uint8 *dst, uint8 c); private: - int16 decodeShapeHelper(uint8 *from, uint8 *to, int size); - void hideMouseHelper(); - void showMouseHelper(); + int16 encodeShapeAndCalculateSize(uint8 *from, uint8 *to, int size); + void restoreMouseRect(); + void copyMouseToScreen(); void copyScreenFromRect(int x, int y, int w, int h, uint8 *ptr); void copyScreenToRect(int x, int y, int w, int h, uint8 *ptr); |