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:
authorWilliam Reynish <billrey@me.com>2019-06-16 01:35:22 +0300
committerWilliam Reynish <billrey@me.com>2019-06-16 01:35:22 +0300
commit87de71a8aaa0fa6a4609ad05db35b9056f3e34a6 (patch)
tree5c8ac63093bfa0a12340a533cf7059e16e59e335 /source/blender/editors/space_file/file_draw.c
parent2f12b01c553b761e7e9d9f7731931dad93028dc2 (diff)
Fix: File browser icons intersecting in thumbnail view
The new icons were colliding in the corners. This moves the ID type icon inside the file box to avoid this clash.
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r--source/blender/editors/space_file/file_draw.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 6b3baa1e766..9bdea13276b 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -478,7 +478,14 @@ static void file_draw_preview(uiBlock *block,
GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
if (icon) {
- UI_icon_draw_ex((float)xco, (float)yco, icon, icon_aspect, 1.0f, 0.0f, NULL, false);
+ UI_icon_draw_ex((float)xco + (7 * UI_DPI_FAC),
+ (float)yco + (7 * UI_DPI_FAC),
+ icon,
+ icon_aspect,
+ 1.0f,
+ 0.0f,
+ NULL,
+ false);
}
/* border */