diff options
author | Johannes Schickel | 2013-08-03 03:57:39 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:14:08 +0200 |
commit | b7330ea28bad73d6ed2cb405134cbde4b58a8161 (patch) | |
tree | 8df441e15b3e8a7e5fa42e7da000066f9b0f47fe /engines | |
parent | eb224176391ff3860d4210d7c4fcca09bee3ea31 (diff) | |
download | scummvm-rg350-b7330ea28bad73d6ed2cb405134cbde4b58a8161.tar.gz scummvm-rg350-b7330ea28bad73d6ed2cb405134cbde4b58a8161.tar.bz2 scummvm-rg350-b7330ea28bad73d6ed2cb405134cbde4b58a8161.zip |
TSAGE: Do not set Surface::pixels directly anymore.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/graphics.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 3080cfe7c2..1815c3d751 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -332,12 +332,7 @@ Graphics::Surface GfxSurface::lockSurface() { // Setup the returned surface either as one pointing to the same pixels as the source, or // as a subset of the source one based on the currently set bounds Graphics::Surface result; - result.w = _bounds.width(); - result.h = _bounds.height(); - result.pitch = src->pitch; - result.format = src->format; - result.pixels = src->getBasePtr(_bounds.left, _bounds.top); - + result.init(_bounds.width(), _bounds.height(), src->pitch, src->getBasePtr(_bounds.left, _bounds.top), src->format); return result; } |