mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00
GUI: Avoid double scaling for scrollbar and tab navbuttons
This commit is contained in:
parent
04f040afce
commit
493a343e6a
gui
@ -995,7 +995,7 @@ void OptionsContainerWidget::reflowLayout() {
|
||||
}
|
||||
|
||||
if (_scrollContainer) {
|
||||
_scrollContainer->resize(_x, _y, _w, _h);
|
||||
_scrollContainer->resize(_x, _y, _w, _h, false);
|
||||
}
|
||||
|
||||
Widget *w = _firstWidget;
|
||||
|
@ -723,7 +723,7 @@ void ListWidget::reflowLayout() {
|
||||
assert(_entriesPerPage > 0);
|
||||
|
||||
if (_scrollBar) {
|
||||
_scrollBar->resize(_w - _scrollBarWidth, 0, _scrollBarWidth, _h);
|
||||
_scrollBar->resize(_w - _scrollBarWidth, 0, _scrollBarWidth, _h, false);
|
||||
scrollBarRecalc();
|
||||
scrollToCurrent();
|
||||
}
|
||||
|
@ -379,8 +379,8 @@ void TabWidget::reflowLayout() {
|
||||
|
||||
int x = _w - _butRP - _butW * 2 - 2;
|
||||
int y = _butTP - _tabHeight;
|
||||
_navLeft->resize(x, y, _butW, _butH);
|
||||
_navRight->resize(x + _butW + 2, y, _butW, _butH);
|
||||
_navLeft->resize(x, y, _butW, _butH, false);
|
||||
_navRight->resize(x + _butW + 2, y, _butW, _butH, false);
|
||||
}
|
||||
|
||||
void TabWidget::drawWidget() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user