aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.h
diff options
context:
space:
mode:
authorSven Hesse2009-06-06 19:06:47 +0000
committerSven Hesse2009-06-06 19:06:47 +0000
commit2901694486712f6012152f7192afa10d08ffc561 (patch)
tree5691199e79c2f55d7352c34a07133e4189920529 /engines/gob/videoplayer.h
parent6c44c7764c3776e6189cd1dfb519709c4864d7fa (diff)
downloadscummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.tar.gz
scummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.tar.bz2
scummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.zip
Demoplayer:
- Fixing the flawed double mode - Adding an "auto" double mode, where the videos get scaled if possible svn-id: r41294
Diffstat (limited to 'engines/gob/videoplayer.h')
-rw-r--r--engines/gob/videoplayer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/gob/videoplayer.h b/engines/gob/videoplayer.h
index eaa0418b68..086173dd66 100644
--- a/engines/gob/videoplayer.h
+++ b/engines/gob/videoplayer.h
@@ -44,7 +44,8 @@ public:
kFlagUseBackSurfaceContent = 0x40,
kFlagFrontSurface = 0x80,
kFlagNoVideo = 0x100,
- kFlagOtherSurface = 0x800
+ kFlagOtherSurface = 0x800,
+ kFlagScreenSurface = 0x1000
};
enum Type {
@@ -65,6 +66,10 @@ public:
int16 reverseTo = -1, bool forceSeek = false);
void primaryClose();
+ void playFrame(int16 frame, int16 breakKey = 27,
+ uint16 palCmd = 8, int16 palStart = 0, int16 palEnd = 255,
+ int16 palFrame = -1 , int16 endFrame = -1);
+
int slotOpen(const char *videoFile, Type which = kVideoTypeTry);
void slotPlay(int slot, int16 frame = -1);
void slotClose(int slot);
@@ -72,7 +77,7 @@ public:
uint16 left, uint16 top, uint16 width, uint16 height,
uint16 x, uint16 y, uint16 pitch, int16 transp = -1);
void slotCopyPalette(int slot, int16 palStart = -1, int16 palEnd = -1);
- void slotWaitEndFrame(int slot, bool onlySound = false);
+ void slotWaitEndFrame(int slot = -1, bool onlySound = false);
void slotSetDoubleMode(int slot, bool doubleMode);
@@ -140,6 +145,7 @@ private:
Common::Array<Video *> _videoSlots;
Video *_primaryVideo;
+ bool _ownSurf;
bool _backSurf;
bool _needBlit;
bool _noCursorSwitch;