summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 09:14:30 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 09:14:30 +0200
commit1d735299127aaf0474d8fc2a1c5ec4947c1dca9a (patch)
tree926f4d136a2799c5fcf62589259ede57c04c35a9 /src/ui/documentwidget.c
parent2f6fd59952ce3d76b15a4b7b8f526e27edd39775 (diff)
Changing UI scaling at runtime
UI scaling factor is applied when closing the Preferences dialog. IssueID #83
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 242afe30..6972f32d 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2246,7 +2246,10 @@ static iChar linkOrdinalChar_DocumentWidget_(const iDocumentWidget *d, size_t or
2246 2246
2247static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *ev) { 2247static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *ev) {
2248 iWidget *w = as_Widget(d); 2248 iWidget *w = as_Widget(d);
2249 if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) { 2249 if (isMetricsChange_UserEvent(ev)) {
2250 updateSize_DocumentWidget(d);
2251 }
2252 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) {
2250 if (!handleCommand_DocumentWidget_(d, command_UserEvent(ev))) { 2253 if (!handleCommand_DocumentWidget_(d, command_UserEvent(ev))) {
2251 /* Base class commands. */ 2254 /* Base class commands. */
2252 return processEvent_Widget(w, ev); 2255 return processEvent_Widget(w, ev);