From 2901694486712f6012152f7192afa10d08ffc561 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 6 Jun 2009 19:06:47 +0000 Subject: Demoplayer: - Fixing the flawed double mode - Adding an "auto" double mode, where the videos get scaled if possible svn-id: r41294 --- engines/gob/videoplayer.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/gob/videoplayer.h') 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