diff options
author | Johannes Schickel | 2013-08-03 03:53:41 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:14:08 +0200 |
commit | d06cbe90435753055724927f57099d437393b0f3 (patch) | |
tree | b8fbb80af2cdbd74d9b5f8de91015b2ba9131a9e | |
parent | 3917608df7153fccdd70c28d24e187233d653b58 (diff) | |
download | scummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.tar.gz scummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.tar.bz2 scummvm-rg350-d06cbe90435753055724927f57099d437393b0f3.zip |
PARALLACTION: Do not set Surface::pixels directly anymore.
-rw-r--r-- | engines/parallaction/exec_ns.cpp | 4 |
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(); |