Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/file_draw.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| const int txpos = (params->display == FILE_IMGDISPLAY) ? tile_draw_rect.xmin : | const int txpos = (params->display == FILE_IMGDISPLAY) ? tile_draw_rect.xmin : | ||||
| tile_draw_rect.xmin + 1 + icon_ofs; | tile_draw_rect.xmin + 1 + icon_ofs; | ||||
| const int typos = (params->display == FILE_IMGDISPLAY) ? | const int typos = (params->display == FILE_IMGDISPLAY) ? | ||||
| tile_draw_rect.ymin + layout->tile_border_y + layout->textheight : | tile_draw_rect.ymin + layout->tile_border_y + layout->textheight : | ||||
| tile_draw_rect.ymax - layout->tile_border_y; | tile_draw_rect.ymax - layout->tile_border_y; | ||||
| const int twidth = (params->display == FILE_IMGDISPLAY) ? | const int twidth = (params->display == FILE_IMGDISPLAY) ? | ||||
| textwidth : | textwidth : | ||||
| textwidth - 1 - icon_ofs - padx - layout->tile_border_x; | textwidth - 1 - icon_ofs - padx - layout->tile_border_x; | ||||
| file_draw_string(txpos, typos, file->name, (float)twidth, textheight, align, text_col); | const char *name = (file->typeflag & FILE_TYPE_DIR) ? IFACE_(file->name) : file->name; | ||||
| file_draw_string(txpos, typos, name, (float)twidth, textheight, align, text_col); | |||||
| } | } | ||||
| if (params->display != FILE_IMGDISPLAY) { | if (params->display != FILE_IMGDISPLAY) { | ||||
| draw_details_columns(params, layout, file, &tile_draw_rect, text_col); | draw_details_columns(params, layout, file, &tile_draw_rect, text_col); | ||||
| } | } | ||||
| } | } | ||||
| BLF_batch_draw_end(); | BLF_batch_draw_end(); | ||||
| ▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines | |||||