[Scummvm-cvs-logs] SF.net SVN: scummvm:[54858] scummvm/trunk/engines/mohawk

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Fri Dec 10 21:09:05 CET 2010


Revision: 54858
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54858&view=rev
Author:   mthreepwood
Date:     2010-12-10 20:09:05 +0000 (Fri, 10 Dec 2010)

Log Message:
-----------
MOHAWK: Fix another typo (heigth -> height)

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/myst_areas.cpp
    scummvm/trunk/engines/mohawk/myst_areas.h

Modified: scummvm/trunk/engines/mohawk/myst_areas.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst_areas.cpp	2010-12-10 20:05:38 UTC (rev 54857)
+++ scummvm/trunk/engines/mohawk/myst_areas.cpp	2010-12-10 20:09:05 UTC (rev 54858)
@@ -469,15 +469,15 @@
 	debugC(kDebugResource, "\tdrag sound : %d", _dragSound);
 
 	_sliderWidth = _rect.right - _rect.left;
-	_sliderHeigth = _rect.bottom - _rect.top;
+	_sliderHeight = _rect.bottom - _rect.top;
 }
 
 MystResourceType10::~MystResourceType10() {
 }
 
 void MystResourceType10::setStep(uint16 step) {
-	_rect.top = _minV + _stepV * step - _sliderHeigth / 2;
-	_rect.bottom = _rect.top + _sliderHeigth;
+	_rect.top = _minV + _stepV * step - _sliderHeight / 2;
+	_rect.bottom = _rect.top + _sliderHeight;
 	_subImages[0].rect.top = 333 - _rect.bottom - 1;
 	_subImages[0].rect.bottom = 333 - _rect.top - 1;
 }
@@ -502,8 +502,8 @@
 	}
 
 	if (_flagHV & 2) {
-		bb.top = _minV - _sliderHeigth / 2;
-		bb.bottom = _maxV + _sliderHeigth / 2;
+		bb.top = _minV - _sliderHeight / 2;
+		bb.bottom = _maxV + _sliderHeight / 2;
 	}
 
 	return bb;
@@ -594,7 +594,7 @@
 	if (_flagHV & 2) {
 		if (_stepV) {
 			uint16 center = _minV + _stepV * (mouseClipped.y - _minV) / _stepV;
-			uint16 top = center - _sliderHeigth / 2;
+			uint16 top = center - _sliderHeight / 2;
 			if (_rect.top != top) {
 				positionChanged = true;
 				_pos.y = center;
@@ -603,10 +603,10 @@
 		} else {
 			positionChanged = true;
 			_pos.y = mouseClipped.y;
-			_rect.top = mouseClipped.y - _sliderHeigth / 2;
+			_rect.top = mouseClipped.y - _sliderHeight / 2;
 		}
 		if (positionChanged) {
-			_rect.bottom = _rect.top + _sliderHeigth;
+			_rect.bottom = _rect.top + _sliderHeight;
 			_subImages[0].rect.top = 333 - _rect.bottom - 1;
 			_subImages[0].rect.bottom = 333 - _rect.top - 1;
 		}

Modified: scummvm/trunk/engines/mohawk/myst_areas.h
===================================================================
--- scummvm/trunk/engines/mohawk/myst_areas.h	2010-12-10 20:05:38 UTC (rev 54857)
+++ scummvm/trunk/engines/mohawk/myst_areas.h	2010-12-10 20:09:05 UTC (rev 54858)
@@ -217,7 +217,7 @@
 
 	uint16 _dragSound;
 	uint16 _sliderWidth;
-	uint16 _sliderHeigth;
+	uint16 _sliderHeight;
 };
 
 class MystResourceType12 : public MystResourceType11 {


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