aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:30:12 +0200
committerJohannes Schickel2011-04-17 16:30:12 +0200
commit9734c7be641ac5cd28a336e4d3685f4022a85c26 (patch)
treedb2802af1637e3af48eb9fd1bdbb5645f22b69ba /engines/parallaction/graphics.cpp
parentfedd4d7809f3ef7f9ec446c62bbbf681a87c578e (diff)
downloadscummvm-rg350-9734c7be641ac5cd28a336e4d3685f4022a85c26.tar.gz
scummvm-rg350-9734c7be641ac5cd28a336e4d3685f4022a85c26.tar.bz2
scummvm-rg350-9734c7be641ac5cd28a336e4d3685f4022a85c26.zip
PARALLACTION: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index 35441d7e3e..93bc492b73 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -521,7 +521,7 @@ void Gfx::invertBackground(const Common::Rect& r) {
void setupLabelSurface(Graphics::Surface &surf, uint w, uint h) {
- surf.create(w, h, 1);
+ surf.create(w, h, Graphics::PixelFormat::createFormatCLUT8());
surf.fillRect(Common::Rect(w,h), LABEL_TRANSPARENT_COLOR);
}
@@ -857,7 +857,7 @@ void Gfx::setBackground(uint type, BackgroundInfo *info) {
int height = CLIP(info->height, (int)_vm->_screenHeight, info->height);
if (width != _backBuffer.w || height != _backBuffer.h) {
- _backBuffer.create(width, height, 1);
+ _backBuffer.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
}
}