projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
changed frequency axes
[physik/nlsop.git]
/
dfbapi.c
diff --git
a/dfbapi.c
b/dfbapi.c
index
3d0a6df
..
58510fc
100644
(file)
--- a/
dfbapi.c
+++ b/
dfbapi.c
@@
-241,7
+241,7
@@
int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v,un
if((!mode)||mode==3) dx_lattice_get_color((*d3_l).status+x_c+y_c*d3_l->max_x+z_c*d3_l->max_x*d3_l->max_y,&r,&g,&b,mode);
if(mode==3)
{
- if(
d3_l->max_y*p1[z_c]/max2
==y_c)
+ if(
(int)(d3_l->max_y*(1.0*p2[z_c]/max2))
==y_c)
{
r=0xff;
g=0xff;