diff options
author | Johannes Schickel | 2013-08-03 04:11:40 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:14:08 +0200 |
commit | 0cb1504a5b96ad90634a86af8cad30ecc6588517 (patch) | |
tree | 4dc467c9cb6b1487acd333a86b6576287dc510e3 /video/dxa_decoder.cpp | |
parent | 9a80fa88e0742c38eeb32fd91334570fff6c60ae (diff) | |
download | scummvm-rg350-0cb1504a5b96ad90634a86af8cad30ecc6588517.tar.gz scummvm-rg350-0cb1504a5b96ad90634a86af8cad30ecc6588517.tar.bz2 scummvm-rg350-0cb1504a5b96ad90634a86af8cad30ecc6588517.zip |
VIDEO: Do not set Surface::pixels directly anymore.
Diffstat (limited to 'video/dxa_decoder.cpp')
-rw-r--r-- | video/dxa_decoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/dxa_decoder.cpp b/video/dxa_decoder.cpp index 5ac9bd2088..27b1664b07 100644 --- a/video/dxa_decoder.cpp +++ b/video/dxa_decoder.cpp @@ -521,17 +521,17 @@ const Graphics::Surface *DXADecoder::DXAVideoTrack::decodeNextFrame() { memcpy(&_scaledBuffer[2 * cy * _width], &_frameBuffer1[cy * _width], _width); memset(&_scaledBuffer[((2 * cy) + 1) * _width], 0, _width); } - _surface->pixels = _scaledBuffer; + _surface->setPixels(_scaledBuffer); break; case S_DOUBLE: for (int cy = 0; cy < _curHeight; cy++) { memcpy(&_scaledBuffer[2 * cy * _width], &_frameBuffer1[cy * _width], _width); memcpy(&_scaledBuffer[((2 * cy) + 1) * _width], &_frameBuffer1[cy * _width], _width); } - _surface->pixels = _scaledBuffer; + _surface->setPixels(_scaledBuffer); break; case S_NONE: - _surface->pixels = _frameBuffer1; + _surface->setPixels(_frameBuffer1); break; } |