aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 03:53:41 +0200
committerJohannes Schickel2013-08-03 04:14:08 +0200
commitd06cbe90435753055724927f57099d437393b0f3 (patch)
treeb8fbb80af2cdbd74d9b5f8de91015b2ba9131a9e /engines
parent3917608df7153fccdd70c28d24e187233d653b58 (diff)
downloadscummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.tar.gz
scummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.tar.bz2
scummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.zip
PARALLACTION: Do not set Surface::pixels directly anymore.
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/exec_ns.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/parallaction/exec_ns.cpp b/engines/parallaction/exec_ns.cpp
index 3ea4332e50..816f220b1f 100644
--- a/engines/parallaction/exec_ns.cpp
+++ b/engines/parallaction/exec_ns.cpp
@@ -126,9 +126,7 @@ DECLARE_INSTRUCTION_OPCODE(put) {
inst->_a->getFrameRect(r);
Graphics::Surface v18;
- v18.w = r.width();
- v18.h = r.height();
- v18.pixels = inst->_a->getFrameData();
+ v18.init(r.width(), r.height(), r.width(), inst->_a->getFrameData(), Graphics::PixelFormat::createFormatCLUT8());
int16 x = inst->_opA.getValue();
int16 y = inst->_opB.getValue();