diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-29 22:14:15 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-29 22:14:15 +0200 |
commit | e0feeab5eb91b556c529d97da89b915ab821e285 (patch) | |
tree | 1397a7454321708e05c1de807ce7e28bb144a755 /src/ui/widget.c | |
parent | 31a6a229bd5fdc81f6b9a14a8b5e0daf219e2418 (diff) |
Fixed drawing of widget frames
In CertImportWidget at regular-DPI 1.0 scaling, the frames of the certificate and private key labels were drawn incorrectly.
Now the non-button LabelWidget relies on Widget to draw the frames.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 1d2aecf0..e2d0f922 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -637,7 +637,7 @@ void drawBackground_Widget(const iWidget *d) { | |||
637 | if (d->bgColor >= 0) { | 637 | if (d->bgColor >= 0) { |
638 | fillRect_Paint(&p, rect, d->bgColor); | 638 | fillRect_Paint(&p, rect, d->bgColor); |
639 | } | 639 | } |
640 | if (d->frameColor >= 0) { | 640 | if (d->frameColor >= 0 && ~d->flags & frameless_WidgetFlag) { |
641 | drawRectThickness_Paint(&p, rect, gap_UI / 4, d->frameColor); | 641 | drawRectThickness_Paint(&p, rect, gap_UI / 4, d->frameColor); |
642 | } | 642 | } |
643 | } | 643 | } |