aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/celobj32.h
diff options
context:
space:
mode:
authorColin Snover2016-03-07 20:48:31 -0600
committerColin Snover2016-03-07 20:51:06 -0600
commit73eea88939defa2ddf0faf6adeaa904f59521ce8 (patch)
tree09c3c214d75ba6a73aa9f0d2a316d53ec4986926 /engines/sci/graphics/celobj32.h
parent6779340b244fdb6b9643190c3beaa8ddbd4253e0 (diff)
downloadscummvm-rg350-73eea88939defa2ddf0faf6adeaa904f59521ce8.tar.gz
scummvm-rg350-73eea88939defa2ddf0faf6adeaa904f59521ce8.tar.bz2
scummvm-rg350-73eea88939defa2ddf0faf6adeaa904f59521ce8.zip
SCI32: Move in-memory bitmap read/write into its own class
Diffstat (limited to 'engines/sci/graphics/celobj32.h')
-rw-r--r--engines/sci/graphics/celobj32.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h
index 5707333818..1422b76a57 100644
--- a/engines/sci/graphics/celobj32.h
+++ b/engines/sci/graphics/celobj32.h
@@ -547,34 +547,6 @@ public:
*/
class CelObjMem : public CelObj {
public:
- /**
- * Writes a bitmap header to the given data buffer.
- */
- static void buildBitmapHeader(byte *bitmap, const int16 width, const int16 height, const uint8 skipColor, const int16 displaceX, const int16 displaceY, const int16 scaledWidth, const int16 scaledHeight, const uint32 hunkPaletteOffset, const bool useRemap);
-
- /**
- * Gets the size of the bitmap header for the current
- * engine version.
- */
- inline static uint32 getBitmapHeaderSize() {
- // TODO: These values are accurate for each engine, but there may be no reason
- // to not simply just always use size 40, since SCI2.1mid does not seem to
- // actually store any data above byte 40, and SCI2 did not allow bitmaps with
- // scaling resolutions other than the default (320x200). Perhaps SCI3 used
- // the extra bytes, or there is some reason why they tried to align the header
- // size with other headers like pic headers?
-// uint32 bitmapHeaderSize;
-// if (getSciVersion() >= SCI_VERSION_2_1_MIDDLE) {
-// bitmapHeaderSize = 46;
-// } else if (getSciVersion() == SCI_VERSION_2_1_EARLY) {
-// bitmapHeaderSize = 40;
-// } else {
-// bitmapHeaderSize = 36;
-// }
-// return bitmapHeaderSize;
- return 46;
- }
-
CelObjMem(reg_t bitmap);
virtual ~CelObjMem() override {};