Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_draw.c
| Show First 20 Lines • Show All 778 Lines • ▼ Show 20 Lines | static void draw_seq_strip(Scene *scene, ARegion *ar, Sequence *seq, int outline_tint, float pixelx) | ||||
| glColor3ubv((GLubyte *)col); | glColor3ubv((GLubyte *)col); | ||||
| if (seq->flag & SEQ_MUTE) { | if (seq->flag & SEQ_MUTE) { | ||||
| glEnable(GL_LINE_STIPPLE); | glEnable(GL_LINE_STIPPLE); | ||||
| glLineStipple(1, 0x8888); | glLineStipple(1, 0x8888); | ||||
| } | } | ||||
| uiDrawBoxShade(GL_LINE_LOOP, x1, y1, x2, y2, 0.0, 0.1, 0.0); | UI_draw_roundbox_shade_x(GL_LINE_LOOP, x1, y1, x2, y2, 0.0, 0.1, 0.0); | ||||
| if (seq->flag & SEQ_MUTE) { | if (seq->flag & SEQ_MUTE) { | ||||
| glDisable(GL_LINE_STIPPLE); | glDisable(GL_LINE_STIPPLE); | ||||
| } | } | ||||
| if (seq->type == SEQ_TYPE_META) { | if (seq->type == SEQ_TYPE_META) { | ||||
| drawmeta_contents(scene, seq, x1, y1, x2, y2); | drawmeta_contents(scene, seq, x1, y1, x2, y2); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 424 Lines • ▼ Show 20 Lines | if ((sseq->flag & SEQ_DRAW_SAFE_MARGINS) != 0) { | ||||
| x2 -= a; | x2 -= a; | ||||
| a = fac * (y2 - y1); | a = fac * (y2 - y1); | ||||
| y1 += a; | y1 += a; | ||||
| y2 -= a; | y2 -= a; | ||||
| glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); | glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); | ||||
| uiSetRoundBox(UI_CNR_ALL); | UI_draw_roundbox_corner_set(UI_CNR_ALL); | ||||
| uiDrawBox(GL_LINE_LOOP, x1, y1, x2, y2, 12.0); | UI_draw_roundbox_gl_mode(GL_LINE_LOOP, x1, y1, x2, y2, 12.0); | ||||
| glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); | glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); | ||||
| } | } | ||||
| setlinestyle(0); | setlinestyle(0); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines | |||||