VIDEO: Add getSurface

svn-id: r51892
This commit is contained in:
Sven Hesse 2010-08-08 00:53:55 +00:00
parent 3295d6ec6b
commit 3c5e02900f
2 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,13 @@ void CoktelDecoder::setSurfaceMemory() {
_ownSurface = true;
}
const Surface *CoktelDecoder::getSurface() const {
if (!isVideoLoaded())
return 0;
return &_surface;
}
bool CoktelDecoder::hasSurface() {
return _surface.pixels != 0;
}

View File

@ -68,6 +68,8 @@ public:
/** 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. */