GUI: RTL: Fix small issues

- Remove unused variable in tab.cpp
- Remove wrong check for alignment in popups. For rtl, set align to right.
This commit is contained in:
aryanrawlani28 2020-06-21 23:28:08 +05:30 committed by Eugene Sandulenko
parent 86c11597b8
commit e3db189f0b
2 changed files with 1 additions and 8 deletions

View file

@ -386,11 +386,9 @@ void TabWidget::reflowLayout() {
void TabWidget::drawWidget() {
Common::Array<Common::String> tabs;
Common::Array<int> widths;
int totalWidth = 0;
for (int i = _firstVisibleTab; i <= _lastVisibleTab; ++i) {
tabs.push_back(_tabs[i].title);
widths.push_back(_tabs[i]._tabWidth);
totalWidth += _tabs[i]._tabWidth;
}
g_gui.theme()->drawDialogBackground(