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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user