diff options
| author | Travis Howell | 2005-04-05 15:21:18 +0000 | 
|---|---|---|
| committer | Travis Howell | 2005-04-05 15:21:18 +0000 | 
| commit | 90b475f53f0c56a49d6aa8dbeb894f0b2f59e1cd (patch) | |
| tree | 43c4951a749c27081f818fb65bb02f6d8b016c70 | |
| parent | 1758c5b211a39c29a193546348e7cc6e7bc2e8c9 (diff) | |
| download | scummvm-rg350-90b475f53f0c56a49d6aa8dbeb894f0b2f59e1cd.tar.gz scummvm-rg350-90b475f53f0c56a49d6aa8dbeb894f0b2f59e1cd.tar.bz2 scummvm-rg350-90b475f53f0c56a49d6aa8dbeb894f0b2f59e1cd.zip | |
Use correct buffer when capturing wizImage.
Puzzle in 1grademo and jokes/photo booth in pajama work now.
svn-id: r17389
| -rw-r--r-- | scumm/wiz_he.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index 61ff5dd7dd..a941cb5965 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -773,14 +773,14 @@ static int wizPackType0(uint8 *dst, const uint8 *src, int srcPitch, const Common  	return size;  } -void ScummEngine_v72he::captureWizImage(int resNum, const Common::Rect& r, bool frontBuffer, int compType) { +void ScummEngine_v72he::captureWizImage(int resNum, const Common::Rect& r, bool backBuffer, int compType) {  	debug(1, "ScummEngine_v72he::captureWizImage(%d, %d, [%d,%d,%d,%d])", resNum, compType, r.left, r.top, r.right, r.bottom);  	uint8 *src = NULL;  	VirtScreen *pvs = &virtscr[kMainVirtScreen]; -	if (frontBuffer) { -		src = pvs->getPixels(0, 0); -	} else { +	if (backBuffer) {  		src = pvs->getBackPixels(0, 0); +	} else { +		src = pvs->getPixels(0, 0);  	}  	Common::Rect rCapt(pvs->w, pvs->h);  	if (rCapt.intersects(r)) { @@ -1461,7 +1461,7 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) {  		displayWizComplexImage(params);  		break;  	case 2: - 		captureWizImage(params->img.resNum, params->box, (params->img.flags & kWIFBlitToFrontVideoBuffer) == kWIFBlitToFrontVideoBuffer, params->compType); + 		captureWizImage(params->img.resNum, params->box, (params->img.flags & kWIFBlitToFrontVideoBuffer), params->compType);  		break;  	case 3:  		if (params->processFlags & kWPFUseFile) { | 
