diff options
Diffstat (limited to 'source/blender/editors/space_clip/clip_utils.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_utils.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/editors/space_clip/clip_utils.c b/source/blender/editors/space_clip/clip_utils.c index 48f8f587106..5964e9a898b 100644 --- a/source/blender/editors/space_clip/clip_utils.c +++ b/source/blender/editors/space_clip/clip_utils.c @@ -247,23 +247,18 @@ void clip_draw_cfra(SpaceClip *sc, ARegion *ar, Scene *scene) { View2D *v2d = &ar->v2d; float xscale, yscale; - float vec[2]; /* Draw a light green line to indicate current frame */ - vec[0] = (float)(sc->user.framenr * scene->r.framelen); - UI_ThemeColor(TH_CFRAME); - glLineWidth(2.0); - glBegin(GL_LINE_STRIP); - vec[1] = v2d->cur.ymin; - glVertex2fv(vec); + float x = (float)(sc->user.framenr * scene->r.framelen); - vec[1] = v2d->cur.ymax; - glVertex2fv(vec); - glEnd(); + glLineWidth(2.0); - glLineWidth(1.0); + glBegin(GL_LINES); + glVertex2f(x, v2d->cur.ymin); + glVertex2f(x, v2d->cur.ymax); + glEnd(); UI_view2d_view_orthoSpecial(ar, v2d, 1); |