aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/surface.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:33:38 +0200
committerJohannes Schickel2011-04-17 16:33:38 +0200
commit26121bba144e3721c27d347b33c9c7207a7f3424 (patch)
treef5c180424d857099f9f34b179aeac1cd41cb6dc9 /engines/teenagent/surface.cpp
parentb3f0eb8a9db27d3b0659eeb7ce53c69849342439 (diff)
downloadscummvm-rg350-26121bba144e3721c27d347b33c9c7207a7f3424.tar.gz
scummvm-rg350-26121bba144e3721c27d347b33c9c7207a7f3424.tar.bz2
scummvm-rg350-26121bba144e3721c27d347b33c9c7207a7f3424.zip
TEENAGENT: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines/teenagent/surface.cpp')
-rw-r--r--engines/teenagent/surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp
index 96672ca1b3..545b0f75f0 100644
--- a/engines/teenagent/surface.cpp
+++ b/engines/teenagent/surface.cpp
@@ -61,7 +61,7 @@ void Surface::load(Common::SeekableReadStream *stream, Type type) {
}
//debug(0, "creating surface %ux%u -> %u,%u", w_, h_, x, y);
- create(w_, h_, 1);
+ create(w_, h_, Graphics::PixelFormat::createFormatCLUT8());
stream->read(pixels, w_ * h_);
}