[Scummvm-cvs-logs] SF.net SVN: scummvm:[51892] scummvm/trunk/graphics/video
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sun Aug 8 02:53:56 CEST 2010
Revision: 51892
http://scummvm.svn.sourceforge.net/scummvm/?rev=51892&view=rev
Author: drmccoy
Date: 2010-08-08 00:53:55 +0000 (Sun, 08 Aug 2010)
Log Message:
-----------
VIDEO: Add getSurface
Modified Paths:
--------------
scummvm/trunk/graphics/video/coktel_decoder.cpp
scummvm/trunk/graphics/video/coktel_decoder.h
Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp 2010-08-08 00:53:27 UTC (rev 51891)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp 2010-08-08 00:53:55 UTC (rev 51892)
@@ -71,6 +71,13 @@
_ownSurface = true;
}
+const Surface *CoktelDecoder::getSurface() const {
+ if (!isVideoLoaded())
+ return 0;
+
+ return &_surface;
+}
+
bool CoktelDecoder::hasSurface() {
return _surface.pixels != 0;
}
Modified: scummvm/trunk/graphics/video/coktel_decoder.h
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.h 2010-08-08 00:53:27 UTC (rev 51891)
+++ scummvm/trunk/graphics/video/coktel_decoder.h 2010-08-08 00:53:55 UTC (rev 51892)
@@ -68,6 +68,8 @@
/** Reset the video memory. */
void setSurfaceMemory();
+ const Surface *getSurface() const;
+
/** Draw the video starting at this position within the video memory. */
virtual void setXY(uint16 x, uint16 y);
/** Draw the video at the default position. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list