[Scummvm-cvs-logs] SF.net SVN: scummvm:[35488] scummvm/trunk/engines/saga

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Dec 22 15:36:58 CET 2008


Revision: 35488
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35488&view=rev
Author:   thebluegr
Date:     2008-12-22 14:36:58 +0000 (Mon, 22 Dec 2008)

Log Message:
-----------
logicalWidth -> width
logicalHeight -> height

Modified Paths:
--------------
    scummvm/trunk/engines/saga/actor.cpp
    scummvm/trunk/engines/saga/actor_walk.cpp
    scummvm/trunk/engines/saga/animation.cpp
    scummvm/trunk/engines/saga/detection.cpp
    scummvm/trunk/engines/saga/displayinfo.h
    scummvm/trunk/engines/saga/events.cpp
    scummvm/trunk/engines/saga/interface.cpp
    scummvm/trunk/engines/saga/introproc_fta2.cpp
    scummvm/trunk/engines/saga/introproc_ite.cpp
    scummvm/trunk/engines/saga/isomap.cpp
    scummvm/trunk/engines/saga/render.cpp
    scummvm/trunk/engines/saga/saga.cpp
    scummvm/trunk/engines/saga/scene.cpp
    scummvm/trunk/engines/saga/scene.h
    scummvm/trunk/engines/saga/sfuncs.cpp
    scummvm/trunk/engines/saga/sprite.cpp

Modified: scummvm/trunk/engines/saga/actor.cpp
===================================================================
--- scummvm/trunk/engines/saga/actor.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/actor.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -110,14 +110,14 @@
 	_lastTickMsec = 0;
 
 	_yCellCount = _vm->_scene->getHeight();
-	_xCellCount = _vm->getDisplayInfo().logicalWidth;
+	_xCellCount = _vm->getDisplayInfo().width;
 
 	_pathCell = (int8 *)malloc(_yCellCount * _xCellCount * sizeof(*_pathCell));
 
 	_pathRect.left = 0;
-	_pathRect.right = _vm->getDisplayInfo().logicalWidth;
+	_pathRect.right = _vm->getDisplayInfo().width;
 	_pathRect.top = _vm->getDisplayInfo().pathStartY;
-	_pathRect.bottom = _vm->getDisplayInfo().logicalHeight;
+	_pathRect.bottom = _vm->getDisplayInfo().height;
 
 	// Get actor resource file context
 	_actorContext = _vm->_resource->getContext(GAME_RESOURCEFILE);
@@ -820,13 +820,13 @@
 			height = _vm->_font->getHeight(kKnownFontScript, _activeSpeech.strings[0], width - 2, _activeSpeech.getFontFlags(0)) + 1;
 
 			if (_vm->getGameId() == GID_IHNM) {
-				if (height > _vm->_scene->getHeight(true) / 2 && width < _vm->getDisplayInfo().logicalWidth - 20) {
-					width = _vm->getDisplayInfo().logicalWidth - 20;
+				if (height > _vm->_scene->getHeight(true) / 2 && width < _vm->getDisplayInfo().width - 20) {
+					width = _vm->getDisplayInfo().width - 20;
 					height = _vm->_font->getHeight(kKnownFontScript, _activeSpeech.strings[0], width - 2, _activeSpeech.getFontFlags(0)) + 1;
 				}
 			} else if (_vm->getGameId() == GID_ITE) {
-				if (height > 40 && width < _vm->getDisplayInfo().logicalWidth - 100) {
-					width = _vm->getDisplayInfo().logicalWidth - 100;
+				if (height > 40 && width < _vm->getDisplayInfo().width - 100) {
+					width = _vm->getDisplayInfo().width - 100;
 					height = _vm->_font->getHeight(kKnownFontScript, _activeSpeech.strings[0], width - 2, _activeSpeech.getFontFlags(0)) + 1;
 				}
 			}
@@ -837,8 +837,8 @@
 				actor = getActor(_activeSpeech.actorIds[0]);
 				_activeSpeech.speechBox.setHeight(height);
 
-				if (_activeSpeech.speechBox.right > _vm->getDisplayInfo().logicalWidth - 10) {
-					_activeSpeech.drawRect.left = _vm->getDisplayInfo().logicalWidth - 10 - width;
+				if (_activeSpeech.speechBox.right > _vm->getDisplayInfo().width - 10) {
+					_activeSpeech.drawRect.left = _vm->getDisplayInfo().width - 10 - width;
 				} else {
 					_activeSpeech.drawRect.left = _activeSpeech.speechBox.left;
 				}
@@ -891,7 +891,7 @@
 	}
 
 	result = commonObjectData->_screenPosition.x > -64 &&
-			commonObjectData->_screenPosition.x < _vm->getDisplayInfo().logicalWidth + 64 &&
+			commonObjectData->_screenPosition.x < _vm->getDisplayInfo().width + 64 &&
 			commonObjectData->_screenPosition.y > -64 &&
 			commonObjectData->_screenPosition.y < _vm->_scene->getHeight() + 64;
 
@@ -1096,7 +1096,7 @@
 			actor = getActor(_activeSpeech.actorIds[i]);
 			calcScreenPosition(actor);
 
-			textPoint.x = CLIP(actor->_screenPosition.x - width / 2, 10, _vm->getDisplayInfo().logicalWidth - 10 - width);
+			textPoint.x = CLIP(actor->_screenPosition.x - width / 2, 10, _vm->getDisplayInfo().width - 10 - width);
 
 			if (_vm->getGameId() == GID_ITE)
 				textPoint.y = CLIP(actor->_screenPosition.y - 58, 10, _vm->_scene->getHeight(true) - 10 - height);
@@ -1135,7 +1135,7 @@
 	_activeSpeech.playing = false;
 	_activeSpeech.slowModeCharIndex = 0;
 
-	dist = MIN(actor->_screenPosition.x - 10, _vm->getDisplayInfo().logicalWidth - 10 - actor->_screenPosition.x);
+	dist = MIN(actor->_screenPosition.x - 10, _vm->getDisplayInfo().width - 10 - actor->_screenPosition.x);
 
 	if (_vm->getGameId() == GID_ITE)
 		dist = CLIP<int16>(dist, 60, 150);
@@ -1149,9 +1149,9 @@
 		_activeSpeech.speechBox.right += 10 - _activeSpeech.speechBox.left;
 		_activeSpeech.speechBox.left = 10;
 	}
-	if (_activeSpeech.speechBox.right > _vm->getDisplayInfo().logicalWidth - 10) {
-		_activeSpeech.speechBox.left -= _activeSpeech.speechBox.right - _vm->getDisplayInfo().logicalWidth - 10;
-		_activeSpeech.speechBox.right = _vm->getDisplayInfo().logicalWidth - 10;
+	if (_activeSpeech.speechBox.right > _vm->getDisplayInfo().width - 10) {
+		_activeSpeech.speechBox.left -= _activeSpeech.speechBox.right - _vm->getDisplayInfo().width - 10;
+		_activeSpeech.speechBox.right = _vm->getDisplayInfo().width - 10;
 	}
 
 	// HACK for the compact disk in Ellen's chapter

Modified: scummvm/trunk/engines/saga/actor_walk.cpp
===================================================================
--- scummvm/trunk/engines/saga/actor_walk.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/actor_walk.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -101,7 +101,7 @@
 	Point point;
 	location.toScreenPointXY(point);
 
-	if ((point.x < 5) || (point.x >= _vm->getDisplayInfo().logicalWidth - 5) ||
+	if ((point.x < 5) || (point.x >= _vm->getDisplayInfo().width - 5) ||
 		(point.y < 0) || (point.y > _vm->_scene->getHeight())) {
 		return false;
 	}
@@ -856,7 +856,7 @@
 					newLocation.y += _vm->_rnd.getRandomNumber(prefer1.y - 1) - prefer1.y / 2;
 				}
 
-				newLocation.x = CLIP<int>(newLocation.x, -31 * 4, (_vm->getDisplayInfo().logicalWidth + 31) * 4);
+				newLocation.x = CLIP<int>(newLocation.x, -31 * 4, (_vm->getDisplayInfo().width + 31) * 4);
 
 				return actorWalkTo(actor->_id, newLocation);
 			}

Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/animation.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -540,8 +540,8 @@
 		frame = anim->currentFrame;
 
 		// FIXME: if start > 0, then this works incorrectly
-		decodeFrame(anim, anim->frameOffsets[frame], displayBuffer, _vm->getDisplayInfo().logicalWidth * _vm->getDisplayInfo().logicalHeight);
-		_vm->_render->addDirtyRect(Common::Rect(0, 0, _vm->getDisplayInfo().logicalWidth, _vm->getDisplayInfo().logicalHeight));
+		decodeFrame(anim, anim->frameOffsets[frame], displayBuffer, _vm->getDisplayInfo().width * _vm->getDisplayInfo().height);
+		_vm->_render->addDirtyRect(Common::Rect(0, 0, _vm->getDisplayInfo().width, _vm->getDisplayInfo().height));
 		_vm->_frameCount++;
 		anim->currentFrame++;
 		if (anim->completed != 65535) {

Modified: scummvm/trunk/engines/saga/detection.cpp
===================================================================
--- scummvm/trunk/engines/saga/detection.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/detection.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -312,8 +312,8 @@
 namespace Saga {
 
 bool SagaEngine::initGame() {
-	_displayClip.right = getDisplayInfo().logicalWidth;
-	_displayClip.bottom = getDisplayInfo().logicalHeight;
+	_displayClip.right = getDisplayInfo().width;
+	_displayClip.bottom = getDisplayInfo().height;
 
 	return _resource->createContexts();
 }

Modified: scummvm/trunk/engines/saga/displayinfo.h
===================================================================
--- scummvm/trunk/engines/saga/displayinfo.h	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/displayinfo.h	2008-12-22 14:36:58 UTC (rev 35488)
@@ -45,8 +45,8 @@
 };
 
 struct GameDisplayInfo {
-	int logicalWidth;
-	int logicalHeight;
+	int width;
+	int height;
 
 	int pathStartY;
 	int sceneHeight;

Modified: scummvm/trunk/engines/saga/events.cpp
===================================================================
--- scummvm/trunk/engines/saga/events.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/events.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -180,8 +180,8 @@
 			size_t len;
 
 			_vm->_scene->getBGMaskInfo(w, h, maskBuffer, len);
-			rect.left = (_vm->getDisplayInfo().logicalWidth - w) / 2;
-			rect.top = (_vm->getDisplayInfo().logicalHeight - h) / 2;
+			rect.left = (_vm->getDisplayInfo().width - w) / 2;
+			rect.top = (_vm->getDisplayInfo().height - h) / 2;
 			rect.setWidth(w);
 			rect.setHeight(h);
 
@@ -319,7 +319,7 @@
 				backGroundSurface->blit(bgInfo.bounds, bgInfo.buffer);
 
 				// If it is inset scene then draw black border
-				if (bgInfo.bounds.width() < _vm->getDisplayInfo().logicalWidth || bgInfo.bounds.height() < _vm->_scene->getHeight()) {
+				if (bgInfo.bounds.width() < _vm->getDisplayInfo().width || bgInfo.bounds.height() < _vm->_scene->getHeight()) {
 					Common::Rect rect1(2, bgInfo.bounds.height() + 4);
 					Common::Rect rect2(bgInfo.bounds.width() + 4, 2);
 					Common::Rect rect3(2, bgInfo.bounds.height() + 4);

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/interface.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -1884,7 +1884,7 @@
 	// Erase background of status bar
 	rect.left = _vm->getDisplayInfo().statusXOffset;
 	rect.top = _vm->getDisplayInfo().statusYOffset;
-	rect.right = rect.left + _vm->getDisplayInfo().logicalWidth;
+	rect.right = rect.left + _vm->getDisplayInfo().width;
 	rect.bottom = rect.top + _vm->getDisplayInfo().statusHeight;
 
 	_vm->_gfx->drawRect(rect, _vm->getDisplayInfo().statusBGColor - offset);
@@ -2792,7 +2792,7 @@
 	_mapPanelCrossHairState = !_mapPanelCrossHairState;
 
 	Point mapPosition = _vm->_isoMap->getMapPosition();
-	Rect screen(_vm->getDisplayInfo().logicalWidth, _vm->_scene->getHeight());
+	Rect screen(_vm->getDisplayInfo().width, _vm->_scene->getHeight());
 
 	if (screen.contains(mapPosition)) {
 		_vm->_sprite->draw(_vm->_sprite->_mainSprites,

Modified: scummvm/trunk/engines/saga/introproc_fta2.cpp
===================================================================
--- scummvm/trunk/engines/saga/introproc_fta2.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/introproc_fta2.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -101,9 +101,9 @@
 bool MoviePlayerSMK::processFrame() {
 	Graphics::Surface *screen = _vm->_system->lockScreen();
 	copyFrameToBuffer((byte *)screen->pixels, 
-						(_vm->getDisplayInfo().logicalWidth - getWidth()) / 2, 
-						(_vm->getDisplayInfo().logicalHeight - getHeight()) / 2,
-						_vm->getDisplayInfo().logicalWidth);
+						(_vm->getDisplayInfo().width - getWidth()) / 2, 
+						(_vm->getDisplayInfo().height - getHeight()) / 2,
+						_vm->getDisplayInfo().width);
 	_vm->_system->unlockScreen();
 
 	if (!getAudioLag() || getFrameWaitTime() || _frameSkipped > getFrameRate()) {

Modified: scummvm/trunk/engines/saga/introproc_ite.cpp
===================================================================
--- scummvm/trunk/engines/saga/introproc_ite.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/introproc_ite.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -114,7 +114,7 @@
 	textEntry.effectKnownColor = kKnownColorTransparent;
 	textEntry.useRect = true;
 	textEntry.rect.left = 0;
-	textEntry.rect.right = _vm->getDisplayInfo().logicalWidth;
+	textEntry.rect.right = _vm->getDisplayInfo().width;
 	if (_vm->getLanguage() == Common::DE_DEU) {
 		textEntry.rect.top = INTRO_DE_CAPTION_Y;
 	} else if (_vm->getLanguage() == Common::IT_ITA) {
@@ -122,7 +122,7 @@
 	} else {
 		textEntry.rect.top = INTRO_CAPTION_Y;
 	}
-	textEntry.rect.bottom = _vm->getDisplayInfo().logicalHeight;
+	textEntry.rect.bottom = _vm->getDisplayInfo().height;
 	textEntry.font = kKnownFontMedium;
 	textEntry.flags = (FontEffectFlags)(kFontOutline | kFontCentered);
 

Modified: scummvm/trunk/engines/saga/isomap.cpp
===================================================================
--- scummvm/trunk/engines/saga/isomap.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/isomap.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -295,7 +295,7 @@
 	}
 	playerPoint.y -= 28;
 
-	playerPoint.x += _viewScroll.x - _vm->getDisplayInfo().logicalWidth/2;
+	playerPoint.x += _viewScroll.x - _vm->getDisplayInfo().width/2;
 	playerPoint.y += _viewScroll.y - _vm->_scene->getHeight()/2;
 
 	minScrollPos.x = playerPoint.x - SAGA_SCROLL_LIMIT_X1;
@@ -401,8 +401,8 @@
 	spritePointer.x = screenPosition.x + xAlign;
 	spritePointer.y = screenPosition.y + yAlign;
 
-	_tileClip.left = CLIP<int>(spritePointer.x, 0, _vm->getDisplayInfo().logicalWidth);
-	_tileClip.right = CLIP<int>(spritePointer.x + width, 0, _vm->getDisplayInfo().logicalWidth);
+	_tileClip.left = CLIP<int>(spritePointer.x, 0, _vm->getDisplayInfo().width);
+	_tileClip.right = CLIP<int>(spritePointer.x + width, 0, _vm->getDisplayInfo().width);
 	_tileClip.top = CLIP<int>(spritePointer.y, 0, _vm->_scene->getHeight());
 	_tileClip.bottom = CLIP<int>(spritePointer.y + height, 0, _vm->_scene->getHeight());
 
@@ -441,7 +441,7 @@
 	metaTileY.x = (u0 - v0) * 128 - (view1.x * 16 + fineScroll.x);
 	metaTileY.y = (view1.y * 16 - fineScroll.y) - (u0 + v0) * 64;
 
-	workAreaWidth = _vm->getDisplayInfo().logicalWidth + 128;
+	workAreaWidth = _vm->getDisplayInfo().width + 128;
 	workAreaHeight = _vm->_scene->getHeight() + 128 + 80;
 
 	for (u1 = u0, v1 = v0; metaTileY.y < workAreaHeight; u1--, v1-- ) {
@@ -852,8 +852,8 @@
 				}
 				while ((col < _tileClip.right) && (count < fgRunCount)) {
 					assert(_vm->_gfx->getBackBufferPixels() <= (byte *)(drawPointer + count));
-					assert((_vm->_gfx->getBackBufferPixels() + (_vm->getDisplayInfo().logicalWidth *
-								 _vm->getDisplayInfo().logicalHeight)) > (byte *)(drawPointer + count));
+					assert((_vm->_gfx->getBackBufferPixels() + (_vm->getDisplayInfo().width *
+								 _vm->getDisplayInfo().height)) > (byte *)(drawPointer + count));
 					drawPointer[count] = readPointer[count];
 					count++;
 					col++;

Modified: scummvm/trunk/engines/saga/render.cpp
===================================================================
--- scummvm/trunk/engines/saga/render.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/render.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -55,7 +55,7 @@
 	_vm->_timer->installTimerProc(&fpsTimerCallback, 1000000, this);
 #endif
 
-	_backGroundSurface.create(_vm->getDisplayInfo().logicalWidth, _vm->getDisplayInfo().logicalHeight, 1);
+	_backGroundSurface.create(_vm->getDisplayInfo().width, _vm->getDisplayInfo().height, 1);
 
 	_flags = 0;
 

Modified: scummvm/trunk/engines/saga/saga.cpp
===================================================================
--- scummvm/trunk/engines/saga/saga.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/saga.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -215,7 +215,7 @@
 	_previousTicks = _system->getMillis();
 
 	// Initialize graphics
-	_gfx = new Gfx(this, _system, getDisplayInfo().logicalWidth, getDisplayInfo().logicalHeight);
+	_gfx = new Gfx(this, _system, getDisplayInfo().width, getDisplayInfo().height);
 
 	// Graphics driver should be initialized before console
 	_console = new Console(this);

Modified: scummvm/trunk/engines/saga/scene.cpp
===================================================================
--- scummvm/trunk/engines/saga/scene.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/scene.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -501,9 +501,9 @@
 
 				_vm->_interface->setStatusText("Click or Press Return to continue. Press Q to quit.", 96);
 				_vm->_font->textDrawRect(kKnownFontMedium, sceneSubstitutes[i].title,
-					 Common::Rect(0, 7, _vm->getDisplayInfo().logicalWidth, 27), _vm->KnownColor2ColorId(kKnownColorBrightWhite), _vm->KnownColor2ColorId(kKnownColorBlack), kFontOutline);
+					 Common::Rect(0, 7, _vm->getDisplayInfo().width, 27), _vm->KnownColor2ColorId(kKnownColorBrightWhite), _vm->KnownColor2ColorId(kKnownColorBlack), kFontOutline);
 				_vm->_font->textDrawRect(kKnownFontMedium, sceneSubstitutes[i].message,
-					 Common::Rect(24, getHeight() - 33, _vm->getDisplayInfo().logicalWidth - 11,
+					 Common::Rect(24, getHeight() - 33, _vm->getDisplayInfo().width - 11,
 								  getHeight()), _vm->KnownColor2ColorId(kKnownColorBrightWhite), _vm->KnownColor2ColorId(kKnownColorBlack), kFontOutline);
 				return;
 			}
@@ -538,8 +538,8 @@
 	bgInfo.bounds.left = 0;
 	bgInfo.bounds.top = 0;
 
-	if (_bg.w < _vm->getDisplayInfo().logicalWidth) {
-		bgInfo.bounds.left = (_vm->getDisplayInfo().logicalWidth - _bg.w) / 2;
+	if (_bg.w < _vm->getDisplayInfo().width) {
+		bgInfo.bounds.left = (_vm->getDisplayInfo().width - _bg.w) / 2;
 	}
 
 	if (_bg.h < getHeight()) {
@@ -571,7 +571,7 @@
 		return false;
 	}
 
-	point.x = CLIP<int>(testPoint.x, 0, _vm->getDisplayInfo().logicalWidth - 1);
+	point.x = CLIP<int>(testPoint.x, 0, _vm->getDisplayInfo().width - 1);
 	point.y = CLIP<int>(testPoint.y, 0, _bgMask.h - 1);
 	if (point == testPoint) {
 		return false;
@@ -737,13 +737,13 @@
 
 		_sceneClip.left = 0;
 		_sceneClip.top = 0;
-		_sceneClip.right = _vm->getDisplayInfo().logicalWidth;
+		_sceneClip.right = _vm->getDisplayInfo().width;
 		_sceneClip.bottom = getHeight();
 	} else {
 		BGInfo backGroundInfo;
 		getBGInfo(backGroundInfo);
 		_sceneClip = backGroundInfo.bounds;
-		if (!(_bg.w < _vm->getDisplayInfo().logicalWidth || _bg.h < getHeight()))
+		if (!(_bg.w < _vm->getDisplayInfo().width || _bg.h < getHeight()))
 			_outsetSceneNumber = _sceneNumber;
 	}
 
@@ -1057,7 +1057,7 @@
 
 			// At least in ITE the mask needs to be clipped.
 
-			_bgMask.w = MIN(_bgMask.w, _vm->getDisplayInfo().logicalWidth);
+			_bgMask.w = MIN(_bgMask.w, _vm->getDisplayInfo().width);
 			_bgMask.h = MIN(_bgMask.h, getHeight());
 
 			debug(4, "BACKGROUND MASK width=%d height=%d length=%d", _bgMask.w, _bgMask.h, (int)_bgMask.buf_len);

Modified: scummvm/trunk/engines/saga/scene.h
===================================================================
--- scummvm/trunk/engines/saga/scene.h	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/scene.h	2008-12-22 14:36:58 UTC (rev 35488)
@@ -358,7 +358,7 @@
 
 	int getHeight(bool speech = false) const {
 		if (_vm->getGameId() == GID_IHNM && _vm->_scene->currentChapterNumber() == 8 && !speech)
-			return _vm->getDisplayInfo().logicalHeight;
+			return _vm->getDisplayInfo().height;
 		else
 			return _vm->getDisplayInfo().sceneHeight;
 	}

Modified: scummvm/trunk/engines/saga/sfuncs.cpp
===================================================================
--- scummvm/trunk/engines/saga/sfuncs.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/sfuncs.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -1219,7 +1219,7 @@
 	event.param2 = 0;
 	event.param3 = _vm->_scene->getHeight();
 	event.param4 = 0;
-	event.param5 = _vm->getDisplayInfo().logicalWidth;
+	event.param5 = _vm->getDisplayInfo().width;
 	q_event = _vm->_events->chain(q_event, &event);
 
 	// Put the text in the center of the viewport, assuming it will fit on
@@ -1232,7 +1232,7 @@
 
 	textEntry.knownColor = kKnownColorBrightWhite;
 	textEntry.effectKnownColor = kKnownColorBlack;
-	textEntry.point.x = _vm->getDisplayInfo().logicalWidth / 2;
+	textEntry.point.x = _vm->getDisplayInfo().width / 2;
 	textEntry.point.y = (_vm->_scene->getHeight() - _vm->_font->getHeight(kKnownFontMedium)) / 2;
 	textEntry.font = kKnownFontMedium;
 	textEntry.flags = (FontEffectFlags)(kFontOutline | kFontCentered);

Modified: scummvm/trunk/engines/saga/sprite.cpp
===================================================================
--- scummvm/trunk/engines/saga/sprite.cpp	2008-12-22 14:34:32 UTC (rev 35487)
+++ scummvm/trunk/engines/saga/sprite.cpp	2008-12-22 14:36:58 UTC (rev 35488)
@@ -243,8 +243,8 @@
 	for (i = io; i < clipHeight; i++) {
 		for (j = jo; j < clipWidth; j++) {
 			assert(_vm->_gfx->getBackBufferPixels() <= (byte *)(bufRowPointer + j + spritePointer.x));
-			assert((_vm->_gfx->getBackBufferPixels() + (_vm->getDisplayInfo().logicalWidth *
-				 _vm->getDisplayInfo().logicalHeight)) > (byte *)(bufRowPointer + j + spritePointer.x));
+			assert((_vm->_gfx->getBackBufferPixels() + (_vm->getDisplayInfo().width *
+				 _vm->getDisplayInfo().height)) > (byte *)(bufRowPointer + j + spritePointer.x));
 			assert((const byte *)spriteBuffer <= (const byte *)(srcRowPointer + j));
 			assert(((const byte *)spriteBuffer + (width * height)) > (const byte *)(srcRowPointer + j));
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list