Started to prepare the gui for runtime resolution switches.

(some little things could be missing yet though)

svn-id: r22017
This commit is contained in:
Johannes Schickel 2006-04-19 01:05:28 +00:00
parent ec7e734adb
commit 30787714d3
20 changed files with 255 additions and 37 deletions

View file

@ -137,6 +137,17 @@ bool TabWidget::handleKeyDown(uint16 ascii, int keycode, int modifiers) {
return Widget::handleKeyDown(ascii, keycode, modifiers);
}
void TabWidget::handleScreenChanged() {
for (uint i = 0; i < _tabs.size(); ++i) {
Widget *w = _tabs[i].firstWidget;
while (w) {
w->handleScreenChanged();
w = w->next();
}
}
Widget::handleScreenChanged();
}
void TabWidget::drawWidget(bool hilite) {
Common::Array<Common::String> tabs;
for (int i = 0; i < (int)_tabs.size(); ++i) {