Changes of Revision 9
CImg-139.h.patch
Added
x
1
2
+--- ./src/CImg.h~ 2011-03-09 22:14:35.000000000 +0100
3
++++ ./src/CImg.h 2015-12-21 14:23:00.886919854 +0100
4
+@@ -24720,13 +24720,13 @@ namespace cimg_library {
5
+ by = 3*(y1 - y0) - 2*v0 - v1,
6
+ _precision = 1/(std::sqrt(cimg::sqr(x0-x1)+cimg::sqr(y0-y1))*(precision>0?precision:1));
7
+ int ox = x0, oy = y0, otx = tx0, oty = ty0;
8
+- for (float t = 0; t<1; t+=_precision) {
9
+- const float t2 = t*t, t3 = t2*t;
10
++ for (float ttt = 0; ttt<1; ttt+=_precision) {
11
++ const float t2 = ttt*ttt, t3 = t2*ttt;
12
+ const int
13
+- nx = (int)(ax*t3 + bx*t2 + u0*t + x0),
14
+- ny = (int)(ay*t3 + by*t2 + v0*t + y0),
15
+- ntx = tx0 + (int)((tx1-tx0)*t),
16
+- nty = ty0 + (int)((ty1-ty0)*t);
17
++ nx = (int)(ax*t3 + bx*t2 + u0*ttt + x0),
18
++ ny = (int)(ay*t3 + by*t2 + v0*ttt + y0),
19
++ ntx = tx0 + (int)((tx1-tx0)*ttt),
20
++ nty = ty0 + (int)((ty1-ty0)*ttt);
21
+ draw_line(ox,oy,nx,ny,texture,otx,oty,ntx,nty,opacity,pattern,ninit_hatch);
22
+ ninit_hatch = false;
23
+ ox = nx; oy = ny; otx = ntx; oty = nty;
24