Support of new subtitles code. Patch from salty-horse.

svn-id: r23031
This commit is contained in:
Eugene Sandulenko 2006-06-11 20:30:43 +00:00
parent fd7e9847fc
commit de95d463a8
4 changed files with 15 additions and 7 deletions

View file

@ -1367,7 +1367,7 @@ void Interface::setOption(PanelButton *panelButton) {
ConfMan.setBool("subtitles", _vm->_subtitlesEnabled);
} else {
_vm->_readingSpeed = (_vm->_readingSpeed + 1) % 4;
ConfMan.setInt("talkspeed", _vm->_readingSpeed);
_vm->setTalkspeed(_vm->_readingSpeed);
}
break;
case kTextMusic:
@ -1893,7 +1893,7 @@ void Interface::drawButtonBox(Surface *ds, const Rect& rect, ButtonKind kind, bo
ds->fillRect(fill, solidColor);
}
static const int readingSpeeds[] = { kTextFast, kTextMid, kTextSlow, kTextClick };
static const int readingSpeeds[] = { kTextClick, kTextSlow, kTextMid, kTextFast };
void Interface::drawPanelButtonText(Surface *ds, InterfacePanel *panel, PanelButton *panelButton) {
const char *text;