mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-28 07:16:53 +00:00
VIDEO: Add getSurface
svn-id: r51892
This commit is contained in:
parent
3295d6ec6b
commit
3c5e02900f
@ -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;
|
||||
}
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user