mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Minz<0 fix
This commit is contained in:
parent
35ab3ef6bb
commit
84bd66d68c
@ -230,10 +230,10 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry)
|
||||
if (minx>x0) {
|
||||
double j=minx-x0; // == starting min of first sample in this segment
|
||||
idx=(j/sr);
|
||||
idx/=(sam*num_averages);
|
||||
idx*=(sam*num_averages);
|
||||
//idx/=(sam*num_averages);
|
||||
//idx*=(sam*num_averages);
|
||||
// Loose the precision
|
||||
//idx+=sam-(idx % sam);
|
||||
idx+=sam-(idx % sam);
|
||||
|
||||
} // else just start from the beginning
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user