diff options
| author | Johannes Schickel | 2013-08-07 12:24:59 -0700 | 
|---|---|---|
| committer | Johannes Schickel | 2013-08-07 12:24:59 -0700 | 
| commit | 7f8308e0eb50c4e13ec0684619b5474983a93a66 (patch) | |
| tree | 0a057f01385a11d99add1e294f70891a8e8bf6c9 /engines/hopkins/saveload.cpp | |
| parent | 6e9390feb8166d5f9d6c6fdfe00a336b4f71de4c (diff) | |
| parent | e5f0c42a65f38611272542a144228753e0496493 (diff) | |
| download | scummvm-rg350-7f8308e0eb50c4e13ec0684619b5474983a93a66.tar.gz scummvm-rg350-7f8308e0eb50c4e13ec0684619b5474983a93a66.tar.bz2 scummvm-rg350-7f8308e0eb50c4e13ec0684619b5474983a93a66.zip | |
Merge pull request #365 from lordhoto/protected-pixels
Make Graphics::Surface::pixels protected.
Diffstat (limited to 'engines/hopkins/saveload.cpp')
| -rw-r--r-- | engines/hopkins/saveload.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/engines/hopkins/saveload.cpp b/engines/hopkins/saveload.cpp index c514df6943..b0dea7e6d1 100644 --- a/engines/hopkins/saveload.cpp +++ b/engines/hopkins/saveload.cpp @@ -233,14 +233,14 @@ void SaveLoadManager::createThumbnail(Graphics::Surface *s) {  	Graphics::Surface thumb8;  	thumb8.create(w, h, Graphics::PixelFormat::createFormatCLUT8()); -	_vm->_graphicsMan->reduceScreenPart(_vm->_graphicsMan->_frontBuffer, (byte *)thumb8.pixels, +	_vm->_graphicsMan->reduceScreenPart(_vm->_graphicsMan->_frontBuffer, (byte *)thumb8.getPixels(),  		_vm->_events->_startPos.x, 20, SCREEN_WIDTH, SCREEN_HEIGHT - 40, 80);  	// Convert the 8-bit pixel to 16 bit surface  	s->create(w, h, Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0)); -	const byte *srcP = (const byte *)thumb8.pixels; -	uint16 *destP = (uint16 *)s->pixels; +	const byte *srcP = (const byte *)thumb8.getPixels(); +	uint16 *destP = (uint16 *)s->getPixels();  	for (int yp = 0; yp < h; ++yp) {  		// Copy over the line, using the source pixels as lookups into the pixels palette @@ -299,8 +299,8 @@ void SaveLoadManager::convertThumb16To8(Graphics::Surface *thumb16, Graphics::Su  		pixelFormat16.colorToRGB(p, paletteR[palIndex], paletteG[palIndex], paletteB[palIndex]);  	} -	const uint16 *srcP = (const uint16 *)thumb16->pixels; -	byte *destP = (byte *)thumb8->pixels; +	const uint16 *srcP = (const uint16 *)thumb16->getPixels(); +	byte *destP = (byte *)thumb8->getPixels();  	for (int yp = 0; yp < thumb16->h; ++yp) {  		const uint16 *lineSrcP = srcP; | 
