From 1ca771a41e430f866e3a3270f285fc9a7eacfc65 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 20 Feb 2021 15:15:42 +0200 Subject: iOS: Removed 2nd sidebar; background tweaks --- src/ui/documentwidget.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/ui/documentwidget.c') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index cb075c49..683793ea 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -2894,12 +2894,10 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { } if (run->flags & siteBanner_GmRunFlag) { /* Banner background. */ - fillRect_Paint( - &d->paint, - initCorners_Rect(topLeft_Rect(d->widgetBounds), - init_I2(right_Rect(bounds_Widget(constAs_Widget(d->widget))), - visPos.y + height_Rect(run->visBounds))), - tmBannerBackground_ColorId); + iRect bannerBack = initCorners_Rect(topLeft_Rect(d->widgetBounds), + init_I2(right_Rect(bounds_Widget(constAs_Widget(d->widget))), + visPos.y + height_Rect(run->visBounds))); + fillRect_Paint(&d->paint, bannerBack, tmBannerBackground_ColorId); drawBannerRun_DrawContext_(d, run, visPos); } else { -- cgit v1.2.3