X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_pen.h;h=d1e80820b0a2341fa82fad0bbceddec969dcedf6;hb=09d2698c33525643fb95132d1e5c887dc6836779;hp=aa6bfabd7817ea25858c1c3d8c398a22536466cb;hpb=f2fefda3669ab4accfa23204db1cf13b74894da3;p=synfig.git diff --git a/ETL/trunk/ETL/_pen.h b/ETL/trunk/ETL/_pen.h index aa6bfab..d1e8082 100644 --- a/ETL/trunk/ETL/_pen.h +++ b/ETL/trunk/ETL/_pen.h @@ -214,9 +214,9 @@ public: const_reference get_value_clip_at(int x, int y)const { assert(data_); if(clipped(x,y))return value_type(); return ((pointer)(((char*)data_)+y*pitch_))[x]; } - value_type get_value_clip()const { assert(data_); if(clipped())return value_type(); return *data_; } + const value_type get_value_clip()const { assert(data_); if(clipped())return value_type(); return *data_; } - value_type get_pen_value()const { return value_; } + const value_type get_pen_value()const { return value_; } void put_hline(int l,const value_type &v) {for(;l>0;l--,inc_x())put_value(v);}