aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.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/inventory.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/inventory.cpp')
-rw-r--r--engines/parallaction/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp
index 5ead55bbef..6ceca27a4f 100644
--- a/engines/parallaction/inventory.cpp
+++ b/engines/parallaction/inventory.cpp
@@ -141,7 +141,7 @@ void Parallaction::closeInventory() {
InventoryRenderer::InventoryRenderer(Parallaction *vm, InventoryProperties *props, Inventory *inv) : _vm(vm), _props(props), _inv(inv) {
- _surf.create(_props->_width, _props->_height, 1);
+ _surf.create(_props->_width, _props->_height, Graphics::PixelFormat::createFormatCLUT8());
}
InventoryRenderer::~InventoryRenderer() {