aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorSven Hesse2011-01-20 12:28:22 +0000
committerSven Hesse2011-01-20 12:28:22 +0000
commit75c840b52782489639e95509495bd3ddf3513fea (patch)
treefffdfb5980fb72d4d0bfa50a45610d5a8ceaf801 /graphics
parent6e403b38bad648cd52eeb5a1f0b71d75ab4256a7 (diff)
downloadscummvm-rg350-75c840b52782489639e95509495bd3ddf3513fea.tar.gz
scummvm-rg350-75c840b52782489639e95509495bd3ddf3513fea.tar.bz2
scummvm-rg350-75c840b52782489639e95509495bd3ddf3513fea.zip
VIDEO: Add hasVideo()
svn-id: r55348
Diffstat (limited to 'graphics')
-rw-r--r--graphics/video/coktel_decoder.cpp8
-rw-r--r--graphics/video/coktel_decoder.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index fe5d90499e..cb1d968d16 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -167,6 +167,10 @@ bool CoktelDecoder::hasPalette() const {
return (_features & kFeaturesPalette) != 0;
}
+bool CoktelDecoder::hasVideo() const {
+ return true;
+}
+
bool CoktelDecoder::hasSound() const {
return _hasSound;
}
@@ -2716,6 +2720,10 @@ int32 VMDDecoder::getSubtitleIndex() const {
return _subtitle;
}
+bool VMDDecoder::hasVideo() const {
+ return _hasVideo;
+}
+
bool VMDDecoder::isPaletted() const {
return _isPaletted;
}
diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h
index d2e927c8e0..441bdc8184 100644
--- a/graphics/video/coktel_decoder.h
+++ b/graphics/video/coktel_decoder.h
@@ -90,6 +90,7 @@ public:
const Common::List<Common::Rect> &getDirtyRects() const;
bool hasPalette() const;
+ virtual bool hasVideo() const;
bool hasSound() const;
bool isSoundEnabled() const;
@@ -355,7 +356,8 @@ public:
int32 getSubtitleIndex() const;
- virtual bool isPaletted() const;
+ bool hasVideo() const;
+ bool isPaletted() const;
// VideoDecoder interface