X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=dfbapi.c;h=58510fc03b9b2bba273f3be594db9614a00253cd;hp=3d0a6dfe0e24a02f738850675af95068be836a54;hb=62c53ee63cb2a377bf6f2ca58333a5dff30c2785;hpb=0bad4b5ad923c4254427400f7a8ec5a2e812b486 diff --git a/dfbapi.c b/dfbapi.c index 3d0a6df..58510fc 100644 --- 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;