rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / scientific / gdl / patches / 06-plotting_shade_surf.cpp.patch
blob0ef5aa5ba63e70e698a83480304aad5a4168706b
1 Prevent a name clash
3 --- gdl-v1.0.6/src/plotting_shade_surf.cpp.org 2024-05-23 16:36:39.000000000 +0200
4 +++ gdl-v1.0.6/src/plotting_shade_surf.cpp 2024-05-30 09:56:41.415618734 +0200
5 @@ -430,11 +430,11 @@
7 //position of light Source. Plplot does not use only the direction of the beam but the position of the illuminating
8 //source. And its illumination looks strange. We try to make the ill. source a bit far in the good direction.
9 - PLFLT sun[3];
10 - sun[0]=lightSourcePos[0]*1E10;
11 - sun[1]=lightSourcePos[1]*1E10;
12 - sun[2]=lightSourcePos[2]*1E10;if (below) sun[2]*=-1;
13 - actStream->lightsource(sun[0],sun[1],sun[2]);
14 + PLFLT sunn[3];
15 + sunn[0]=lightSourcePos[0]*1E10;
16 + sunn[1]=lightSourcePos[1]*1E10;
17 + sunn[2]=lightSourcePos[2]*1E10;if (below) sunn[2]*=-1;
18 + actStream->lightsource(sunn[0],sunn[1],sunn[2]);
19 actStream->surf3d(xg1,yg1,map,cgrid1.nx,cgrid1.ny,meshOpt,NULL,0);
21 //Clean allocated data struct