Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_draw.c
| Show First 20 Lines • Show All 2,728 Lines • ▼ Show 20 Lines | void draw_timeline_seq(const bContext *C, ARegion *region) | ||||
| if (ed && ed->metastack.first) { | if (ed && ed->metastack.first) { | ||||
| GPU_clear_color(col[0], col[1], col[2] - 0.1f, 0.0f); | GPU_clear_color(col[0], col[1], col[2] - 0.1f, 0.0f); | ||||
| } | } | ||||
| else { | else { | ||||
| GPU_clear_color(col[0], col[1], col[2], 0.0f); | GPU_clear_color(col[0], col[1], col[2], 0.0f); | ||||
| } | } | ||||
| UI_view2d_view_ortho(v2d); | UI_view2d_view_ortho(v2d); | ||||
| /* Get timeline bound-box, needed for the scroll-bars. */ | |||||
| SEQ_timeline_boundbox(scene, SEQ_active_seqbase_get(ed), &v2d->tot); | |||||
| draw_seq_backdrop(v2d); | draw_seq_backdrop(v2d); | ||||
| if ((sseq->flag & SEQ_SHOW_OVERLAY) && (sseq->timeline_overlay.flag & SEQ_TIMELINE_SHOW_GRID)) { | if ((sseq->flag & SEQ_SHOW_OVERLAY) && (sseq->timeline_overlay.flag & SEQ_TIMELINE_SHOW_GRID)) { | ||||
| U.v2d_min_gridsize *= 3; | U.v2d_min_gridsize *= 3; | ||||
| UI_view2d_draw_lines_x__discrete_frames_or_seconds( | UI_view2d_draw_lines_x__discrete_frames_or_seconds( | ||||
| v2d, scene, (sseq->flag & SEQ_DRAWFRAMES) == 0, false); | v2d, scene, (sseq->flag & SEQ_DRAWFRAMES) == 0, false); | ||||
| U.v2d_min_gridsize /= 3; | U.v2d_min_gridsize /= 3; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | if (scene->ed != NULL) { | ||||
| draw_cache_view(C); | draw_cache_view(C); | ||||
| if (scene->ed->overlay_frame_flag & SEQ_EDIT_OVERLAY_FRAME_SHOW) { | if (scene->ed->overlay_frame_flag & SEQ_EDIT_OVERLAY_FRAME_SHOW) { | ||||
| draw_overlap_frame_indicator(scene, v2d); | draw_overlap_frame_indicator(scene, v2d); | ||||
| } | } | ||||
| UI_view2d_view_restore(C); | UI_view2d_view_restore(C); | ||||
| } | } | ||||
| ED_time_scrub_draw_current_frame(region, scene, !(sseq->flag & SEQ_DRAWFRAMES)); | ED_time_scrub_draw_current_frame(region, scene, !(sseq->flag & SEQ_DRAWFRAMES)); | ||||
| ListBase *seqbase = SEQ_active_seqbase_get(SEQ_editing_get(scene)); | |||||
Severin: Suggest making this `const`. | |||||
| SEQ_timeline_boundbox(scene, seqbase, &v2d->tot); | |||||
| UI_view2d_scrollers_draw(v2d, NULL); | UI_view2d_scrollers_draw(v2d, NULL); | ||||
| } | } | ||||
Suggest making this const.