X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_surface.h;h=8561970ffa3e4e99c40df298478e4b423ae93c31;hb=a27deaf2322fab351ac47cbed699ec3ab8eb198d;hp=bba578faf5ec8a5500a4424549f893b1330f5000;hpb=36d01e1527fda602a9aed07d209eb34e6770bca8;p=synfig.git diff --git a/ETL/trunk/ETL/_surface.h b/ETL/trunk/ETL/_surface.h index bba578f..8561970 100644 --- a/ETL/trunk/ETL/_surface.h +++ b/ETL/trunk/ETL/_surface.h @@ -32,6 +32,7 @@ #include "_pen.h" #include "_misc.h" #include +#include /* === M A C R O S ========================================================= */ @@ -64,7 +65,7 @@ public: typedef VP value_prep_type; typedef alpha_pen const_alpha_pen; - typedef alpha_pen alpha_pen; + typedef alpha_pen non_const_alpha_pen; typedef typename pen::difference_type size_type; typedef typename pen::difference_type difference_type; @@ -410,7 +411,7 @@ public: #define R(x) ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f) #define F(i,j) (cooker_.cook((*this)[max(min(j+v,h_-1),0)][max(min(i+u,w_-1),0)])*(R((i)-a)*R(b-(j)))) #define Z(i,j) ret+=F(i,j) - #define X(i,j) // placeholder... To make box more symetric + #define X(i,j) // placeholder... To make box more symmetric int u(floor_to_int(x)), v(floor_to_int(y)); float a, b; @@ -495,7 +496,7 @@ public: if(y0 > y1) std::swap(y0,y1); //local variable madness - //all things that want to interoperate should provide a default value constructor for = 0 + //all things that want to inter-operate should provide a default value constructor for = 0 accumulator_type acum = 0; int xi=0,yi=0; @@ -561,7 +562,7 @@ public: if(y0 > y1) std::swap(y0,y1); //local variable madness - //all things that want to interoperate should provide a default value constructor for = 0 + //all things that want to inter-operate should provide a default value constructor for = 0 accumulator_type acum = 0; int xi=0,yi=0;