diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 12:31:42 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 15:01:13 +0300 |
commit | 538f0fe2433344184f8c6c9435334a0e475fdcc6 (patch) | |
tree | acf6882e5e903b2ae5d606596641a983bebf27f9 /src | |
parent | 4530faec76c12f5fcf337f3786c1819f94bcd7b9 (diff) |
DocumentWidget: Run drawing vs. backgrounds
Erasing the background of every run should no longer be necessary (with progressive rendering), unless the run can change appearance.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 9d60f86f..9b8340fb 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -3682,8 +3682,8 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { | |||
3682 | // &d->paint, addY_I2(bottomLeft_Rect(wideRect), -1), width_Rect(wideRect), frame); | 3682 | // &d->paint, addY_I2(bottomLeft_Rect(wideRect), -1), width_Rect(wideRect), frame); |
3683 | // } | 3683 | // } |
3684 | } | 3684 | } |
3685 | else { | 3685 | else if (run->linkId) { |
3686 | /* Normal background for other runs. */ | 3686 | /* Normal background for runs that may change appearance. */ |
3687 | fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); | 3687 | fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); |
3688 | } | 3688 | } |
3689 | } | 3689 | } |