Ticket #8384: gui.patch

File gui.patch, 920 bytes (added by salty-horse, 15 years ago)
  • gui/TabWidget.cpp

    RCS file: /cvsroot/scummvm/scummvm/gui/TabWidget.cpp,v
    retrieving revision 1.12
    diff -u -r1.12 TabWidget.cpp
     
    138138        gui->hLine(_x+1, _y + kTabHeight - 1, _x + _w - 2, gui->_color);
    139139        gui->hLine(_x+1, _y + _h - 2, _x + _w - 2, gui->_shadowcolor);
    140140        gui->hLine(_x+1, _y + _h - 1, _x + _w - 2, gui->_color);
    141 }
    142141
     142        // Erase the line beneath the active tab
     143        x = _x + kTabLeftOffset + (_tabWidth + kTabSpacing) * _activeTab;
     144        gui->hLine(x + kTabSpacing, _y + kTabHeight - 1, x + _tabWidth - kTabPadding, gui->_bgcolor);
     145        gui->hLine(x + kTabSpacing, _y + kTabHeight - 2, x + _tabWidth - kTabPadding, gui->_bgcolor);
     146}
    143147
    144148Widget *TabWidget::findWidget(int x, int y) {
    145149        if (y < kTabHeight) {