Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/file_draw.c
| Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void draw_tile(int sx, int sy, int width, int height, int colorid, int shade) | static void draw_tile(int sx, int sy, int width, int height, int colorid, int shade) | ||||
| { | { | ||||
| float color[4]; | float color[4]; | ||||
| UI_GetThemeColorShade4fv(colorid, shade, color); | UI_GetThemeColorShade4fv(colorid, shade, color); | ||||
| UI_draw_roundbox_corner_set(UI_CNR_ALL); | UI_draw_roundbox_corner_set(UI_CNR_ALL); | ||||
| UI_draw_roundbox_aa( | UI_draw_roundbox_aa( | ||||
| true, (float)sx, (float)(sy - height), (float)(sx + width), (float)sy, 5.0f, color); | &(const rctf){ | ||||
| .xmin = (float)sx, | |||||
| .xmax = (float)(sx + width), | |||||
| .ymin = (float)(sy - height), | |||||
| .ymax = (float)sy, | |||||
| }, | |||||
| true, | |||||
| 5.0f, | |||||
| color); | |||||
| } | } | ||||
| static void file_draw_icon(uiBlock *block, | static void file_draw_icon(uiBlock *block, | ||||
| const FileDirEntry *file, | const FileDirEntry *file, | ||||
| const char *path, | const char *path, | ||||
| int sx, | int sx, | ||||
| int sy, | int sy, | ||||
| int icon, | int icon, | ||||
| ▲ Show 20 Lines • Show All 926 Lines • Show Last 20 Lines | |||||