aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:30:24 +0200
committerJohannes Schickel2011-04-17 16:30:24 +0200
commitaed601e3556883527454f100bccd14965a4aa2cf (patch)
tree1a9afee70338dceb27ed0e1f4d56bc8ed7c88b5d
parent9734c7be641ac5cd28a336e4d3685f4022a85c26 (diff)
downloadscummvm-rg350-aed601e3556883527454f100bccd14965a4aa2cf.tar.gz
scummvm-rg350-aed601e3556883527454f100bccd14965a4aa2cf.tar.bz2
scummvm-rg350-aed601e3556883527454f100bccd14965a4aa2cf.zip
SAGA: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
-rw-r--r--engines/saga/gfx.cpp2
-rw-r--r--engines/saga/render.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp
index 5fc2082178..29d6544b7b 100644
--- a/engines/saga/gfx.cpp
+++ b/engines/saga/gfx.cpp
@@ -46,7 +46,7 @@ Gfx::Gfx(SagaEngine *vm, OSystem *system, int width, int height) : _vm(vm), _sys
debug(5, "Init screen %dx%d", width, height);
// Convert surface data to R surface data
- _backBuffer.create(width, height, 1);
+ _backBuffer.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
// Start with the cursor shown. It will be hidden before the intro, if
// there is an intro. (With boot params, there may not be.)
diff --git a/engines/saga/render.cpp b/engines/saga/render.cpp
index dc9334b037..837a9e5879 100644
--- a/engines/saga/render.cpp
+++ b/engines/saga/render.cpp
@@ -56,7 +56,7 @@ Render::Render(SagaEngine *vm, OSystem *system) {
_vm->getTimerManager()->installTimerProc(&fpsTimerCallback, 1000000, this);
#endif
- _backGroundSurface.create(_vm->getDisplayInfo().width, _vm->getDisplayInfo().height, 1);
+ _backGroundSurface.create(_vm->getDisplayInfo().width, _vm->getDisplayInfo().height, Graphics::PixelFormat::createFormatCLUT8());
_flags = 0;