aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-10 20:09:05 +0000
committerMatthew Hoops2010-12-10 20:09:05 +0000
commiteefb3ee787266fab788ab0e3bd06ba475369702f (patch)
tree481f22e755aac829f4d66dbc4902620a31e07d6f
parent9aa7f2e7f0b7519144da22f4e409cffbfece2819 (diff)
downloadscummvm-rg350-eefb3ee787266fab788ab0e3bd06ba475369702f.tar.gz
scummvm-rg350-eefb3ee787266fab788ab0e3bd06ba475369702f.tar.bz2
scummvm-rg350-eefb3ee787266fab788ab0e3bd06ba475369702f.zip
MOHAWK: Fix another typo (heigth -> height)
svn-id: r54858
-rw-r--r--engines/mohawk/myst_areas.cpp16
-rw-r--r--engines/mohawk/myst_areas.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp
index 5e31e9d323..f213981c69 100644
--- a/engines/mohawk/myst_areas.cpp
+++ b/engines/mohawk/myst_areas.cpp
@@ -469,15 +469,15 @@ MystResourceType10::MystResourceType10(MohawkEngine_Myst *vm, Common::SeekableRe
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 @@ Common::Rect MystResourceType10::boundingBox() {
}
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 @@ void MystResourceType10::updatePosition(const Common::Point &mouse) {
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 @@ void MystResourceType10::updatePosition(const Common::Point &mouse) {
} 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;
}
diff --git a/engines/mohawk/myst_areas.h b/engines/mohawk/myst_areas.h
index 55231a4597..a54e21ea12 100644
--- a/engines/mohawk/myst_areas.h
+++ b/engines/mohawk/myst_areas.h
@@ -217,7 +217,7 @@ protected:
uint16 _dragSound;
uint16 _sliderWidth;
- uint16 _sliderHeigth;
+ uint16 _sliderHeight;
};
class MystResourceType12 : public MystResourceType11 {