aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/list.h
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-27 15:04:10 +0100
committerBastien Bouclet2018-01-27 18:12:53 +0100
commit7dc602f35287223f9a335d5f19d92b4f8951c04d (patch)
treef9f5f086cac88673e517db26744cf596163425c5 /gui/widgets/list.h
parent5878c618c931f6c600dda0b156d96f909013779b (diff)
downloadscummvm-rg350-7dc602f35287223f9a335d5f19d92b4f8951c04d.tar.gz
scummvm-rg350-7dc602f35287223f9a335d5f19d92b4f8951c04d.tar.bz2
scummvm-rg350-7dc602f35287223f9a335d5f19d92b4f8951c04d.zip
GUI: Fix the caret drawing over the scroll bar in the list widget
Also remove the unused linesWidth variable and fix the hlLeftPadding and hlRightPadding widget attributes to actually work. There are still issues remaining with the caret in the list widget due to the ellipsis being used to shorten long text. Ellipsis is accounted for when drawing the text but not when computing the caret position.
Diffstat (limited to 'gui/widgets/list.h')
-rw-r--r--gui/widgets/list.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gui/widgets/list.h b/gui/widgets/list.h
index 44366be3e9..57e677e91e 100644
--- a/gui/widgets/list.h
+++ b/gui/widgets/list.h
@@ -87,7 +87,6 @@ protected:
public:
ListWidget(Dialog *boss, const String &name, const char *tooltip = 0, uint32 cmd = 0);
ListWidget(Dialog *boss, int x, int y, int w, int h, const char *tooltip = 0, uint32 cmd = 0);
- virtual ~ListWidget();
virtual bool containsWidget(Widget *) const;
virtual Widget *findWidget(int x, int y);
@@ -149,8 +148,6 @@ protected:
void lostFocusWidget();
void checkBounds();
void scrollToCurrent();
-
- int *_textWidth;
};
} // End of namespace GUI