Replaced the round() call with floor(0.5 + ).

Apparently MSVC doesnt have it...
This commit is contained in:
Ton Roosendaal 2005-05-05 20:07:22 +00:00
parent 1ef0359bc4
commit ec9ed88d28
2 changed files with 2 additions and 2 deletions

@ -4384,7 +4384,7 @@ void nextkey(ListBase *elems, int dir)
static int float_to_frame (float frame)
{
int to= (int) round( frame/G.scene->r.framelen );
int to= (int) floor(0.5 + frame/G.scene->r.framelen );
return to;
}

@ -214,7 +214,7 @@ void nextprev_timeline_marker(short dir)
static int float_to_frame(float frame)
{
int to= (int) round( frame/G.scene->r.framelen );
int to= (int) floor(0.5 + frame/G.scene->r.framelen );
return to;
}