- tinsy bit toned down new color for rvk sliders, to match the blender

scheme
- restored commented out test_view2d() call in changeactionspace(). this
  fixes the errors when opening a new or larger action window, with wrong
  layout/matrices
  (HOS: can you verify that doesnt break stuff?)
This commit is contained in:
Ton Roosendaal
2003-07-22 12:49:32 +00:00
parent 4f83159bb2
commit 7e5a6ec482
2 changed files with 5 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ void meshactionbuts(SpaceAction *saction, Key *key)
uiBlock *block;
uiBut *but;
short ofsx, ofsy = 0;
#define RVKBGCOL .6, .6, .8
#define RVKBGCOL .6, .65, .7
#define XIC 20
#define YIC 20
@@ -139,7 +139,7 @@ void meshactionbuts(SpaceAction *saction, Key *key)
y = key->totkey*(CHANNELHEIGHT+CHANNELSKIP)
- CHANNELHEIGHT/2 - G.v2d->cur.ymin;
uiBlockSetCol(block, BUTPURPLE);
uiBlockSetCol(block, BUTGREY);
/* make the little 'open the sliders' widget */
glColor3f(RVKBGCOL);

View File

@@ -2375,9 +2375,10 @@ static void changeactionspace(ScrArea *sa, void *spacedata)
{
if(G.v2d==0) return;
/* action space uses weird matrices... local calculated in a function */
/* this sets the sub-areas correct, for scrollbars */
test_view2d(G.v2d, curarea->winx, curarea->winy);
// test_view2d(G.v2d, curarea->winx, curarea->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);
}