Projects
Multimedia
wxcam
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
CImg-139.h.patch
Added
@@ -0,0 +1,22 @@ +--- ./src/CImg.h~ 2011-03-09 22:14:35.000000000 +0100 ++++ ./src/CImg.h 2015-12-21 14:23:00.886919854 +0100 +@@ -24720,13 +24720,13 @@ namespace cimg_library { + by = 3*(y1 - y0) - 2*v0 - v1, + _precision = 1/(std::sqrt(cimg::sqr(x0-x1)+cimg::sqr(y0-y1))*(precision>0?precision:1)); + int ox = x0, oy = y0, otx = tx0, oty = ty0; +- for (float t = 0; t<1; t+=_precision) { +- const float t2 = t*t, t3 = t2*t; ++ for (float ttt = 0; ttt<1; ttt+=_precision) { ++ const float t2 = ttt*ttt, t3 = t2*ttt; + const int +- nx = (int)(ax*t3 + bx*t2 + u0*t + x0), +- ny = (int)(ay*t3 + by*t2 + v0*t + y0), +- ntx = tx0 + (int)((tx1-tx0)*t), +- nty = ty0 + (int)((ty1-ty0)*t); ++ nx = (int)(ax*t3 + bx*t2 + u0*ttt + x0), ++ ny = (int)(ay*t3 + by*t2 + v0*ttt + y0), ++ ntx = tx0 + (int)((tx1-tx0)*ttt), ++ nty = ty0 + (int)((ty1-ty0)*ttt); + draw_line(ox,oy,nx,ny,texture,otx,oty,ntx,nty,opacity,pattern,ninit_hatch); + ninit_hatch = false; + ox = nx; oy = ny; otx = ntx; oty = nty;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.