diff options
author | Matthew Stewart | 2018-05-13 01:40:31 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 4927cd90b7c6d5f1dc7b3eaeb44502e251f7257c (patch) | |
tree | 5471597ff83ae4f6d9de10e8eac93955814efe99 /engines/startrek/startrek.h | |
parent | 612cf7bdbe599d2adbbad62e33f5fcb73de3d58d (diff) | |
download | scummvm-rg350-4927cd90b7c6d5f1dc7b3eaeb44502e251f7257c.tar.gz scummvm-rg350-4927cd90b7c6d5f1dc7b3eaeb44502e251f7257c.tar.bz2 scummvm-rg350-4927cd90b7c6d5f1dc7b3eaeb44502e251f7257c.zip |
STARTREK: Bitmap scaling
Diffstat (limited to 'engines/startrek/startrek.h')
-rw-r--r-- | engines/startrek/startrek.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/startrek/startrek.h b/engines/startrek/startrek.h index 921d655f38..67c2c8080f 100644 --- a/engines/startrek/startrek.h +++ b/engines/startrek/startrek.h @@ -132,6 +132,8 @@ public: SharedPtr<Bitmap> loadAnimationFrame(const Common::String &filename, uint16 arg2); Common::String getCrewmanAnimFilename(int objectIndex, const Common::String &basename); + SharedPtr<Bitmap> scaleBitmap(SharedPtr<Bitmap> bitmap, uint16 scale); + void scaleBitmapRow(byte *src, byte *dest, uint16 origWidth, uint16 scaledWidth); // Events public: @@ -142,7 +144,6 @@ public: bool popNextEvent(TrekEvent *e); void addEventToQueue(const TrekEvent &e); void clearEventBuffer(); - uint32 getClockTicks(); void updateEvents(); void updateTimerEvent(); void updateMouseEvents(); @@ -190,6 +191,9 @@ public: SharedPtr<FileStream> _objectBanFiles[MAX_OBJECTS / 2]; uint16 _objectBanVar2[MAX_OBJECTS / 2]; // TODO: initialize? + + // _clockTicks is based on DOS interrupt 1A, AH=0; read system clock counter. + // Updates 18.206 times every second. uint32 _clockTicks; uint32 _frameIndex; |