diff options
author | Nicola Mettifogo | 2007-07-01 19:28:32 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-07-01 19:28:32 +0000 |
commit | 675227e81f8a2bb4f6048c9517f586e112565e37 (patch) | |
tree | c65768b75aa2cd2d909afec631870fe9d1a3abd5 /engines/parallaction/graphics.cpp | |
parent | 7bf493939b7e8ed97fd855695326214f401aa0c1 (diff) | |
download | scummvm-rg350-675227e81f8a2bb4f6048c9517f586e112565e37.tar.gz scummvm-rg350-675227e81f8a2bb4f6048c9517f586e112565e37.tar.bz2 scummvm-rg350-675227e81f8a2bb4f6048c9517f586e112565e37.zip |
Introduced new flatBlitCnv to reduce code duplication.
svn-id: r27833
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r-- | engines/parallaction/graphics.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 2f6b0ad3b8..ebdc4187f5 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -474,6 +474,18 @@ void Gfx::setMousePointer(int16 index) { // // Cnv management // +void Gfx::flatBlitCnv(Cnv *cnv, uint16 frame, int16 x, int16 y, Gfx::Buffers buffer) { + + StaticCnv scnv; + + scnv._width = cnv->_width; + scnv._height = cnv->_height; + scnv._data0 = cnv->getFramePtr(frame); + scnv._data1 = NULL; // _questioner->field_8[v60->_mood & 0xF]; + + flatBlitCnv(&scnv, x, y, buffer); +} + void Gfx::flatBlitCnv(StaticCnv *cnv, int16 x, int16 y, Gfx::Buffers buffer) { Common::Rect r(cnv->_width, cnv->_height); r.moveTo(x, y); |