Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_draw.c
| Show First 20 Lines • Show All 1,441 Lines • ▼ Show 20 Lines | static void sequencer_draw_borders_overlay(const SpaceSeq *sseq, | ||||
| immUniform1f("dash_factor", 0.5f); | immUniform1f("dash_factor", 0.5f); | ||||
| imm_draw_box_wire_2d(shdr_pos, x1 - 0.5f, y1 - 0.5f, x2 + 0.5f, y2 + 0.5f); | imm_draw_box_wire_2d(shdr_pos, x1 - 0.5f, y1 - 0.5f, x2 + 0.5f, y2 + 0.5f); | ||||
| /* Draw safety border. */ | /* Draw safety border. */ | ||||
| if (sseq->flag & SEQ_SHOW_SAFE_MARGINS) { | if (sseq->flag & SEQ_SHOW_SAFE_MARGINS) { | ||||
| immUniformThemeColorBlend(TH_VIEW_OVERLAY, TH_BACK, 0.25f); | immUniformThemeColorBlend(TH_VIEW_OVERLAY, TH_BACK, 0.25f); | ||||
| UI_draw_safe_areas( | UI_draw_safe_areas(shdr_pos, | ||||
| shdr_pos, x1, x2, y1, y2, scene->safe_areas.title, scene->safe_areas.action); | &(const rctf){ | ||||
| .xmin = x1, | |||||
| .xmax = x2, | |||||
| .ymin = y1, | |||||
| .ymax = y2, | |||||
| }, | |||||
| scene->safe_areas.title, | |||||
| scene->safe_areas.action); | |||||
| if (sseq->flag & SEQ_SHOW_SAFE_CENTER) { | if (sseq->flag & SEQ_SHOW_SAFE_CENTER) { | ||||
| UI_draw_safe_areas(shdr_pos, | UI_draw_safe_areas(shdr_pos, | ||||
| x1, | &(const rctf){ | ||||
| x2, | .xmin = x1, | ||||
| y1, | .xmax = x2, | ||||
| y2, | .ymin = y1, | ||||
| .ymax = y2, | |||||
| }, | |||||
| scene->safe_areas.title_center, | scene->safe_areas.title_center, | ||||
| scene->safe_areas.action_center); | scene->safe_areas.action_center); | ||||
| } | } | ||||
| } | } | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 968 Lines • Show Last 20 Lines | |||||