[Bf-blender-cvs] [5228a10f6d4] master: UI: Marker position slightly offset.

Pablo Vazquez noreply at git.blender.org
Fri Feb 8 16:18:53 CET 2019


Commit: 5228a10f6d4256e9261eb8fcad04a46688690520
Author: Pablo Vazquez
Date:   Fri Feb 8 16:18:46 2019 +0100
Branches: master
https://developer.blender.org/rB5228a10f6d4256e9261eb8fcad04a46688690520

UI: Marker position slightly offset.

Tested on various interface sizes and thick lines.

Reported by Blender Studio animators.

===================================================================

M	source/blender/editors/animation/anim_markers.c

===================================================================

diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index e2e7ada7185..c6acfa51caa 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -435,7 +435,7 @@ static void draw_marker(
 		          ICON_MARKER;
 	}
 
-	UI_icon_draw(xpos - 0.45f * UI_DPI_ICON_SIZE, yoffs + UI_DPI_ICON_SIZE, icon_id);
+	UI_icon_draw(xpos - 0.55f * UI_DPI_ICON_SIZE, yoffs + UI_DPI_ICON_SIZE, icon_id);
 
 	GPU_blend(false);



More information about the Bf-blender-cvs mailing list