* Made the "mini axis" draw with lines proportional to it's size. Currently, the thick lines are a bit too thick at larger sizes, but it's better than having slower viewports.

* Fixed bug with IPO-transform. When "Switch Mouse Buttons" is on, click-drag transforms of keys didn't work.
This commit is contained in:
Joshua Leung
2008-01-24 00:03:16 +00:00
parent f1fcbd8f14
commit 0d3c8ad238
2 changed files with 9 additions and 1 deletions

View File

@@ -1409,6 +1409,11 @@ static void draw_view_axis(void)
float dx, dy;
float h, s, v;
/* thickness of lines is proportional to k */
/* (log(k)-1) gives a more suitable thickness, but fps decreased by about 3 fps */
glLineWidth(k / 10);
//glLineWidth(log(k)-1); // a bit slow
BIF_GetThemeColor3ubv(TH_GRID, (char *)gridcol);
/* X */
@@ -1473,6 +1478,9 @@ static void draw_view_axis(void)
glRasterPos2i(start + dx + 2, start + dy + ydisp + 2);
BMF_DrawString(G.fonts, "z");
}
/* restore line-width */
glLineWidth(1.0);
}

View File

@@ -1660,7 +1660,7 @@ void mouse_select_ipo(void)
xo= mval[0];
yo= mval[1];
while(get_mbut()&R_MOUSE) {
while (get_mbut() & ((U.flag & USER_LMOUSESELECT)?L_MOUSE:R_MOUSE)) {
getmouseco_areawin(mval);
if(abs(mval[0]-xo)+abs(mval[1]-yo) > 4) {