Skip to content

Commit

Permalink
SAGA: Simply use a Graphics::Surface instead of a Saga::Surface.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmallon authored and fuzzie committed Nov 21, 2011
1 parent d485b36 commit d9bcf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/saga/scene.cpp
Expand Up @@ -454,7 +454,6 @@ void Scene::changeScene(int16 sceneNumber, int actorsEntrance, SceneTransitionTy
if (_vm->_hasITESceneSubstitutes) {
for (int i = 0; i < ARRAYSIZE(sceneSubstitutes); i++) {
if (sceneSubstitutes[i].sceneId == sceneNumber) {
Surface bbmBuffer;
byte *pal, colors[768];
Common::File file;
Rect rect;
Expand All @@ -463,6 +462,7 @@ void Scene::changeScene(int16 sceneNumber, int actorsEntrance, SceneTransitionTy
_vm->_interface->setMode(kPanelSceneSubstitute);

if (file.open(sceneSubstitutes[i].image)) {
Graphics::Surface bbmBuffer;
Graphics::decodePBM(file, bbmBuffer, colors);
pal = colors;
rect.setWidth(bbmBuffer.w);
Expand Down

0 comments on commit d9bcf1a

Please sign in to comment.