diff options
author | Filippos Karapetis | 2009-01-05 17:05:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-01-05 17:05:50 +0000 |
commit | 70ab22e9f2d37e8bdc2d64743676668bb87c8f9f (patch) | |
tree | 288ae4ef4ba43ac10e8e90c4a86ad8bb5481e706 /graphics/video/flic_player.cpp | |
parent | 7f9ea7e35c907d44ce84e990b1b3258e214fac91 (diff) | |
download | scummvm-rg350-70ab22e9f2d37e8bdc2d64743676668bb87c8f9f.tar.gz scummvm-rg350-70ab22e9f2d37e8bdc2d64743676668bb87c8f9f.tar.bz2 scummvm-rg350-70ab22e9f2d37e8bdc2d64743676668bb87c8f9f.zip |
Added a copyFrameToBuffer() method to the FLIC player too, like in the other players
svn-id: r35742
Diffstat (limited to 'graphics/video/flic_player.cpp')
-rw-r--r-- | graphics/video/flic_player.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/video/flic_player.cpp b/graphics/video/flic_player.cpp index e07c815390..42d063f9ff 100644 --- a/graphics/video/flic_player.cpp +++ b/graphics/video/flic_player.cpp @@ -273,4 +273,18 @@ void FlicPlayer::setPalette(uint8 *mem) { } } +void FlicPlayer::copyFrameToBuffer(byte *dst, uint x, uint y, uint pitch) { + uint h = _flicInfo.height; + uint w = _flicInfo.width; + + byte *src = (byte *)_offscreen; + dst += y * pitch + x; + + do { + memcpy(dst, src, w); + dst += pitch; + src += w; + } while (--h); +} + } // End of namespace Graphics |