diff options
author | Johannes Schickel | 2011-04-17 16:34:30 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:34:30 +0200 |
commit | 23479d07f33e4f8548d32264fedd66d46dae43c1 (patch) | |
tree | b612e8a794dc7ff2e8e7bc7f4c36522e98ea030b | |
parent | 0342332be06ab1fd029bb47aad4e9d9bc1aacd2b (diff) | |
download | scummvm-rg350-23479d07f33e4f8548d32264fedd66d46dae43c1.tar.gz scummvm-rg350-23479d07f33e4f8548d32264fedd66d46dae43c1.tar.bz2 scummvm-rg350-23479d07f33e4f8548d32264fedd66d46dae43c1.zip |
TSAGE: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
-rw-r--r-- | engines/tsage/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 77316d2d7d..53af06f456 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -257,7 +257,7 @@ void GfxSurface::create(int width, int height) { assert((width >= 0) && (height >= 0)); _screenSurface = false; _customSurface = new Graphics::Surface(); - _customSurface->create(width, height, 1); + _customSurface->create(width, height, Graphics::PixelFormat::createFormatCLUT8()); _bounds = Rect(0, 0, width, height); } @@ -331,7 +331,7 @@ GfxSurface &GfxSurface::operator=(const GfxSurface &s) { if (_customSurface) { // Surface owns the internal data, so replicate it so new surface owns it's own _customSurface = new Graphics::Surface(); - _customSurface->create(s._customSurface->w, s._customSurface->h, 1); + _customSurface->create(s._customSurface->w, s._customSurface->h, Graphics::PixelFormat::createFormatCLUT8()); const byte *srcP = (const byte *)s._customSurface->getBasePtr(0, 0); byte *destP = (byte *)_customSurface->getBasePtr(0, 0); |