Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-07-28 01:11:56 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-07-28 01:11:56 +0300
commit6eb096d80aa91892f7b707410edb28396038f233 (patch)
tree194bce36c8c47c07e37e3f82604a7e56674efbe0 /source/blender/editors/space_outliner/outliner_draw.c
parent814771e316da89cabbccf70e0f0b6ff7c98af6f1 (diff)
Outliner: Fix wrong offset for row highlights
The row highlight on the right was slightly cut off.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index f5ccbd3433a..aab4db3eca6 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -3584,8 +3584,13 @@ static void draw_line_highlight(int x, int y, int maxx, int maxy, const float co
{
const float pad = U.pixelsize;
UI_draw_roundbox_corner_set(UI_CNR_ALL);
- UI_draw_roundbox_aa(
- true, (float)x + pad, (float)y + pad, (float)maxx - pad, (float)maxy - pad, 5.0f, color);
+ UI_draw_roundbox_aa(true,
+ (float)x + pad,
+ (float)y + pad,
+ (float)maxx - (pad * 2), /* Extra offset needed on right. */
+ (float)maxy - pad,
+ 5.0f,
+ color);
}
static void outliner_draw_highlights_recursive(const ARegion *region,