diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-04 09:14:30 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-04 09:14:30 +0200 |
commit | 1d735299127aaf0474d8fc2a1c5ec4947c1dca9a (patch) | |
tree | 926f4d136a2799c5fcf62589259ede57c04c35a9 /src/ui/listwidget.c | |
parent | 2f6fd59952ce3d76b15a4b7b8f526e27edd39775 (diff) |
Changing UI scaling at runtime
UI scaling factor is applied when closing the Preferences dialog.
IssueID #83
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r-- | src/ui/listwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index d31ac2f5..2e5519a5 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -278,7 +278,10 @@ static void sizeChanged_ListWidget_(iListWidget *d) { | |||
278 | 278 | ||
279 | static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) { | 279 | static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) { |
280 | iWidget *w = as_Widget(d); | 280 | iWidget *w = as_Widget(d); |
281 | if (isCommand_SDLEvent(ev)) { | 281 | if (isMetricsChange_UserEvent(ev)) { |
282 | invalidate_ListWidget(d); | ||
283 | } | ||
284 | else if (isCommand_SDLEvent(ev)) { | ||
282 | const char *cmd = command_UserEvent(ev); | 285 | const char *cmd = command_UserEvent(ev); |
283 | if (equal_Command(cmd, "theme.changed")) { | 286 | if (equal_Command(cmd, "theme.changed")) { |
284 | invalidate_ListWidget(d); | 287 | invalidate_ListWidget(d); |