error in last commit. also use smaller fonts in the sequencer for frame numbers, number string was too long.

This commit is contained in:
Campbell Barton
2008-04-12 20:36:35 +00:00
parent ad6b1e16a5
commit 6b94db570f
2 changed files with 4 additions and 4 deletions

View File

@@ -358,7 +358,7 @@ static void draw_seq_handle(Sequence *seq, SpaceSeq *sseq, float pixelx, short d
float x1, x2, y1, y2;
float handsize;
float minhandle, maxhandle;
char str[120];
char str[32];
unsigned int whichsel=0;
View2D *v2d;
@@ -429,9 +429,9 @@ static void draw_seq_handle(Sequence *seq, SpaceSeq *sseq, float pixelx, short d
glRasterPos3f(rx1, y1-0.15, 0.0);
} else {
sprintf(str, "%d", seq->enddisp - 1);
glRasterPos3f((x2-BMF_GetStringWidth(G.font, str)*pixelx), y2+0.05, 0.0);
glRasterPos3f((x2-BMF_GetStringWidth(G.fonts, str)*pixelx), y2+0.05, 0.0);
}
BMF_DrawString(G.font, str);
BMF_DrawString(G.fonts, str);
}
}

View File

@@ -1753,7 +1753,7 @@ void adduplicateflag(int flag)
newfa= addfacelist(v1, v2, v3, v4, efa, efa);
if (act_efa==act_efa) {
if (efa==act_efa) {
EM_set_actFace(newfa);
}