Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_info/textview.c
| Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | if (icon) { | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| UI_icon_draw_ex(hpadding, | UI_icon_draw_ex(hpadding, | ||||
| line_top - UI_DPI_ICON_SIZE - vpadding, | line_top - UI_DPI_ICON_SIZE - vpadding, | ||||
| icon, | icon, | ||||
| (16 / UI_DPI_ICON_SIZE), | (16 / UI_DPI_ICON_SIZE), | ||||
| 1.0f, | 1.0f, | ||||
| 0.0f, | 0.0f, | ||||
| icon_fg, | icon_fg, | ||||
| false); | false, | ||||
| UI_NO_ICON_OVERLAY_TEXT); | |||||
| GPU_blend(GPU_BLEND_NONE); | GPU_blend(GPU_BLEND_NONE); | ||||
| } | } | ||||
| tds->xy[1] += tds->row_vpadding; | tds->xy[1] += tds->row_vpadding; | ||||
| /* Last part needs no clipping. */ | /* Last part needs no clipping. */ | ||||
| const int final_offset = offsets[tot_lines - 1]; | const int final_offset = offsets[tot_lines - 1]; | ||||
| len = str_len - final_offset; | len = str_len - final_offset; | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||