From a0a47a54d55a37d0a49cc42a91df9523d8c2900b Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Thu, 22 Oct 2020 20:01:32 +0200 Subject: [PATCH] TWINE: renamed method params --- engines/twine/menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/twine/menu.cpp b/engines/twine/menu.cpp index aeb7669ac93..8e3f5a6b4e3 100644 --- a/engines/twine/menu.cpp +++ b/engines/twine/menu.cpp @@ -295,7 +295,7 @@ void Menu::drawBox(int32 left, int32 top, int32 right, int32 bottom) { _engine->_interface->drawLine(++left, bottom, right, bottom, 73); // bottom line } -void Menu::drawButtonGfx(int32 width, int32 topheight, int32 id, int32 value, int32 mode) { +void Menu::drawButtonGfx(int32 width, int32 topheight, int32 buttonId, int32 textId, int32 mode) { /* * int CDvolumeRemaped; * int musicVolumeRemaped; @@ -313,9 +313,9 @@ void Menu::drawButtonGfx(int32 width, int32 topheight, int32 id, int32 value, in int32 bottom2 = bottom; if (mode != 0) { - if (id <= kMasterVolume && id >= kMusicVolume) { + if (buttonId <= kMasterVolume && buttonId >= kMusicVolume) { int32 newWidth = 0; - switch (id) { + switch (buttonId) { case kMusicVolume: { const int volume = _engine->_system->getMixer()->getVolumeForSoundType(Audio::Mixer::SoundType::kMusicSoundType); newWidth = _engine->_screens->crossDot(left, right, Audio::Mixer::kMaxMixerVolume, volume); @@ -364,7 +364,7 @@ void Menu::drawButtonGfx(int32 width, int32 topheight, int32 id, int32 value, in _engine->_text->setFontColor(15); _engine->_text->setFontParameters(2, 8); char dialText[256]; - _engine->_text->getMenuText(value, dialText, sizeof(dialText)); + _engine->_text->getMenuText(textId, dialText, sizeof(dialText)); const int32 textSize = _engine->_text->getTextSize(dialText); _engine->_text->drawText(width - (textSize / 2), topheight - 18, dialText);