NLA and Action window sometimes suffered from very weird scaled display,
caused by making the subwindow very small. Was a missing check for small
sizes.

Also in this commit removal of debug print N_T left in for ipos.
This commit is contained in:
Ton Roosendaal
2006-04-14 15:29:52 +00:00
parent 187cc0a5fe
commit a204ccd287
3 changed files with 6 additions and 4 deletions

View File

@@ -506,13 +506,15 @@ void test_view2d(View2D *v2d, int winx, int winy)
if(v2d->scroll & L_SCROLL) winx-= SCROLLB;
if(v2d->scroll & B_SCROLL) winy-= SCROLLH;
/* header completely closed window */
if(winy<=0) return;
cur= &v2d->cur;
tot= &v2d->tot;
dx= cur->xmax-cur->xmin;
dy= cur->ymax-cur->ymin;
/* Reevan's test */
if (v2d->keepzoom & V2D_LOCKZOOM_Y)
v2d->cur.ymax=v2d->cur.ymin+((float)winy);

View File

@@ -177,8 +177,8 @@ void swap_visible_editipo(void)
ei->flag |= IPO_SELECT;
}
}
else ei->flag &= ~IPO_VISIBLE;
printf("FSISWAP %d, icu%d %d|%d\n", ei->flag, (int)ei->icu, IPO_VISIBLE,IPO_SELECT);
else
ei->flag &= ~IPO_VISIBLE;
ei++;
}

View File

@@ -3854,7 +3854,7 @@ static void changeactionspace(ScrArea *sa, void *spacedata)
if(G.v2d==0) return;
/* this sets the sub-areas correct, for scrollbars */
test_view2d(G.v2d, curarea->winx, curarea->winy);
test_view2d(G.v2d, sa->winx, sa->winy);
/* action space uses weird matrices... local calculated in a function */
// myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);