diff options
author | Einar Johan Trøan Sømåen | 2012-07-29 03:41:45 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-29 03:41:45 +0200 |
commit | 3a218180017e97e4b9dceca3bf25a232f271c6b9 (patch) | |
tree | 254a7cf172388ddc6506ebb990649a9a67b24a8f /engines/wintermute/base/gfx | |
parent | 482a5fb467e6694fb54c75f718563992657edf97 (diff) | |
download | scummvm-rg350-3a218180017e97e4b9dceca3bf25a232f271c6b9.tar.gz scummvm-rg350-3a218180017e97e4b9dceca3bf25a232f271c6b9.tar.bz2 scummvm-rg350-3a218180017e97e4b9dceca3bf25a232f271c6b9.zip |
WINTERMUTE: Make BaseSubFrame load lazily.
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/base_renderer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/gfx/base_renderer.cpp b/engines/wintermute/base/gfx/base_renderer.cpp index ab5111332e..cc6167a749 100644 --- a/engines/wintermute/base/gfx/base_renderer.cpp +++ b/engines/wintermute/base/gfx/base_renderer.cpp @@ -76,16 +76,16 @@ BaseObject *BaseRenderer::getObjectAt(int x, int y) { if (_rectList[i]->_precise) {
// frame
if (_rectList[i]->_frame) {
- int xx = (int)((_rectList[i]->_frame->_rect.left + x - _rectList[i]->_rect.left + _rectList[i]->_offsetX) / (float)((float)_rectList[i]->_zoomX / (float)100));
- int yy = (int)((_rectList[i]->_frame->_rect.top + y - _rectList[i]->_rect.top + _rectList[i]->_offsetY) / (float)((float)_rectList[i]->_zoomY / (float)100));
+ int xx = (int)((_rectList[i]->_frame->getRect().left + x - _rectList[i]->_rect.left + _rectList[i]->_offsetX) / (float)((float)_rectList[i]->_zoomX / (float)100));
+ int yy = (int)((_rectList[i]->_frame->getRect().top + y - _rectList[i]->_rect.top + _rectList[i]->_offsetY) / (float)((float)_rectList[i]->_zoomY / (float)100));
if (_rectList[i]->_frame->_mirrorX) {
- int width = _rectList[i]->_frame->_rect.right - _rectList[i]->_frame->_rect.left;
+ int width = _rectList[i]->_frame->getRect().right - _rectList[i]->_frame->getRect().left;
xx = width - xx;
}
if (_rectList[i]->_frame->_mirrorY) {
- int height = _rectList[i]->_frame->_rect.bottom - _rectList[i]->_frame->_rect.top;
+ int height = _rectList[i]->_frame->getRect().bottom - _rectList[i]->_frame->getRect().top;
yy = height - yy;
}
|