Skip to content

Commit

Permalink
TSAGE: Do not set Surface::pixels directly anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Aug 3, 2013
1 parent eb22417 commit b7330ea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions engines/tsage/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b7330ea

Please sign in to comment.