Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_draw.c
| Show First 20 Lines • Show All 1,100 Lines • ▼ Show 20 Lines | immRectf(pos, | ||||
| SEQ_transform_get_right_handle_frame(seq), | SEQ_transform_get_right_handle_frame(seq), | ||||
| y2); | y2); | ||||
| } | } | ||||
| else { | else { | ||||
| immRectf(pos, x1, y1, x2, y2); | immRectf(pos, x1, y1, x2, y2); | ||||
| } | } | ||||
| /* Draw background for hold still regions. */ | /* Draw background for hold still regions. */ | ||||
| if (!is_single_image && (seq->startstill || seq->endstill)) { | if (!is_single_image && SEQ_time_has_still_frames(seq)) { | ||||
| UI_GetColorPtrShade3ubv(col, col, -35); | UI_GetColorPtrShade3ubv(col, col, -35); | ||||
| immUniformColor4ubv(col); | immUniformColor4ubv(col); | ||||
| if (seq->startstill) { | if (SEQ_time_has_left_still_frames(seq)) { | ||||
| const float content_start = min_ff(seq->enddisp, seq->start); | const float content_start = min_ff(seq->enddisp, seq->start); | ||||
| immRectf(pos, seq->startdisp, y1, content_start, y2); | immRectf(pos, seq->startdisp, y1, content_start, y2); | ||||
| } | } | ||||
| if (seq->endstill) { | if (SEQ_time_has_right_still_frames(seq)) { | ||||
| const float content_end = max_ff(seq->startdisp, seq->start + seq->len); | const float content_end = max_ff(seq->startdisp, seq->start + seq->len); | ||||
| immRectf(pos, content_end, y1, seq->enddisp, y2); | immRectf(pos, content_end, y1, seq->enddisp, y2); | ||||
| } | } | ||||
| } | } | ||||
| /* Draw right half of transition strips. */ | /* Draw right half of transition strips. */ | ||||
| if (ELEM(seq->type, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_WIPE)) { | if (ELEM(seq->type, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_WIPE)) { | ||||
| float vert_pos[3][2]; | float vert_pos[3][2]; | ||||
| ▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | static void draw_seq_strip(const bContext *C, | ||||
| /* Check if we are doing "solo preview". */ | /* Check if we are doing "solo preview". */ | ||||
| bool is_single_image = (char)SEQ_transform_single_image_check(seq); | bool is_single_image = (char)SEQ_transform_single_image_check(seq); | ||||
| /* Use the seq->color_tag to display the tag color. */ | /* Use the seq->color_tag to display the tag color. */ | ||||
| const bool show_strip_color_tag = (sseq->timeline_overlay.flag & | const bool show_strip_color_tag = (sseq->timeline_overlay.flag & | ||||
| SEQ_TIMELINE_SHOW_STRIP_COLOR_TAG); | SEQ_TIMELINE_SHOW_STRIP_COLOR_TAG); | ||||
| /* Draw strip body. */ | /* Draw strip body. */ | ||||
| x1 = (seq->startstill) ? seq->start : seq->startdisp; | x1 = SEQ_time_has_left_still_frames(seq) ? seq->start : seq->startdisp; | ||||
| y1 = seq->machine + SEQ_STRIP_OFSBOTTOM; | y1 = seq->machine + SEQ_STRIP_OFSBOTTOM; | ||||
| x2 = (seq->endstill) ? (seq->start + seq->len) : seq->enddisp; | x2 = SEQ_time_has_right_still_frames(seq) ? (seq->start + seq->len) : seq->enddisp; | ||||
| y2 = seq->machine + SEQ_STRIP_OFSTOP; | y2 = seq->machine + SEQ_STRIP_OFSTOP; | ||||
| /* Limit body to strip bounds. Meta strip can end up with content outside of strip range. */ | /* Limit body to strip bounds. Meta strip can end up with content outside of strip range. */ | ||||
| x1 = min_ff(x1, seq->enddisp); | x1 = min_ff(x1, seq->enddisp); | ||||
| x2 = max_ff(x2, seq->startdisp); | x2 = max_ff(x2, seq->startdisp); | ||||
| float text_margin_y; | float text_margin_y; | ||||
| bool y_threshold; | bool y_threshold; | ||||
| ▲ Show 20 Lines • Show All 1,440 Lines • Show Last 20 Lines | |||||