diff options
author | Ton Roosendaal <ton@blender.org> | 2004-05-10 01:15:05 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-05-10 01:15:05 +0400 |
commit | 24a8327d2516276e6c7834a8067c603cd5af3832 (patch) | |
tree | 751783531b85a4c5dfc3e77446320490d608ced8 /source | |
parent | 4d99961c0dac22051bdc03ed0ed3304121e6a8f7 (diff) |
fix for bug #1263
When zooming in extreme, scaling things outside of view caused dashed
line to be wrong... it used shorts for screencoords. Made it a float.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index a5999827f11..9c4f2c79474 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -247,14 +247,14 @@ static void draw_icon_centered(float *pos, unsigned int *rect, int rectsize) void helpline(float *vec) { - float vecrot[3]; - short mval[2], mval1[2]; + float vecrot[3], cent[2]; + short mval[2]; VECCOPY(vecrot, vec); if(G.obedit) Mat4MulVecfl(G.obedit->obmat, vecrot); getmouseco_areawin(mval); - project_short_noclip(vecrot, mval1); + project_float(vecrot, cent); // no overflow in extreme cases persp(PERSP_WIN); @@ -265,7 +265,7 @@ void helpline(float *vec) setlinestyle(3); glBegin(GL_LINE_STRIP); glVertex2sv(mval); - glVertex2sv(mval1); + glVertex2fv(cent); glEnd(); setlinestyle(0); |