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:
authorHarley Acheson <harley.acheson@gmail.com>2019-05-13 01:21:43 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-05-13 01:21:43 +0300
commiteff273c0bc31fa321c35e132949eb8a6062952dc (patch)
treeb5f59c7913253b56ec793322110f33e13f0856f1 /source/blender/editors/interface/interface_draw.c
parent6d89693222be1f5210366f934fb3804e7acbd744 (diff)
Fix T64463: Visual Artifacts with ColorRamp
This patch fixes an issue with the ColorRamp overflowing its drawing bounds Differential Revision: https://developer.blender.org/D4843 Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r--source/blender/editors/interface/interface_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c
index 655c0b1775c..640d5127446 100644
--- a/source/blender/editors/interface/interface_draw.c
+++ b/source/blender/editors/interface/interface_draw.c
@@ -1599,8 +1599,8 @@ void ui_draw_but_COLORBAND(uiBut *but, const uiWidgetColors *UNUSED(wcol), const
return;
}
- float x1 = rect->xmin + (0.25f * UI_UNIT_X);
- float sizex = rect->xmax - x1 - (0.30f * UI_UNIT_X);
+ float x1 = rect->xmin;
+ float sizex = rect->xmax - x1;
float sizey = BLI_rcti_size_y(rect);
float sizey_solid = sizey * 0.25f;
float y1 = rect->ymin;