projects
/
physik
/
nlsop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0bad4b5
)
fixed plot of nlsop profile
author
hackbard
<hackbard>
Thu, 12 Aug 2004 10:21:51 +0000
(10:21 +0000)
committer
hackbard
<hackbard>
Thu, 12 Aug 2004 10:21:51 +0000
(10:21 +0000)
dfbapi.c
patch
|
blob
|
history
nlsop.c
patch
|
blob
|
history
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((!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;
{
r=0xff;
g=0xff;
diff --git
a/nlsop.c
b/nlsop.c
index
ce06cec
..
350868e
100644
(file)
--- a/
nlsop.c
+++ b/
nlsop.c
@@
-1081,7
+1081,7
@@
u32 get_reject_graph(info *my_info,d3_lattice *d3_l,char *file,u32 *graph) {
free(flag);
#ifdef DEBUG_INTERPOL_PROFILE
free(flag);
#ifdef DEBUG_INTERPOL_PROFILE
- printf("debug:
(interpolated profile)\n"
);
+ printf("debug:
%s (interpolated profile)\n",file
);
for(i=0;i<d3_l->max_z;i++) printf("%d %d\n",i,graph[i]);
#endif
for(i=0;i<d3_l->max_z;i++) printf("%d %d\n",i,graph[i]);
#endif