diff options
author | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
commit | 983863bef3f72b81cd0c1211241c64670c4e3e18 (patch) | |
tree | c6f14bff41a913bdf4efe2c858d863bdbf4801ed /engines/parallaction/parallaction.cpp | |
parent | 805a46b229658782820a5f78a862e19e2533ec18 (diff) | |
download | scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.gz scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.bz2 scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.zip |
Uniformed the interface of Parallaction class (and its hierarchy) with regards of gui code, which is now independent of engine version.
svn-id: r34219
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index aa363bc80e..d0700232d1 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -269,7 +269,15 @@ void Parallaction::freeLocation() { return; } +void Parallaction::showSlide(const char *name, int x, int y) { + BackgroundInfo *info = new BackgroundInfo; + _disk->loadSlide(*info, name); + + info->x = (x == CENTER_LABEL_HORIZONTAL) ? ((_vm->_screenWidth - info->width) >> 1) : x; + info->y = (y == CENTER_LABEL_VERTICAL) ? ((_vm->_screenHeight - info->height) >> 1) : y; + _gfx->setBackground(kBackgroundSlide, info); +} void Parallaction::freeBackground() { |