From b58d259f7ee00f6cff86afc48f713979db8a31a0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 1 Aug 2007 02:37:29 +0000 Subject: The psychic profile background is displayed correctly again svn-id: r28380 --- engines/saga/events.cpp | 3 ++- engines/saga/sfuncs.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp index b7f65b9f83..80e6b58595 100644 --- a/engines/saga/events.cpp +++ b/engines/saga/events.cpp @@ -364,8 +364,9 @@ int Events::handleOneShot(Event *event) { const PalEntry *palette = (const PalEntry *)_vm->getImagePal(resourceData, resourceDataLength); Surface *bgSurface = _vm->_render->getBackGroundSurface(); + const Rect profileRect(width, height); - bgSurface->blit(rect, buf); + bgSurface->blit(profileRect, buf); _vm->_frameCount++; _vm->_gfx->setPalette(palette); diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index b468d4482f..c0e105a8fd 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -1418,7 +1418,6 @@ void Script::sfPlacardOff(SCRIPTFUNC_PARAMS) { void Script::sfPsychicProfile(SCRIPTFUNC_PARAMS) { int stringId; - //Surface *backBuffer = _vm->_gfx->getBackBuffer(); static PalEntry cur_pal[PAL_ENTRIES]; PalEntry *pal; Event event; -- cgit v1.2.3