X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_svg%2Fsvg_parser.h;h=3ac8f9b0a1bcfc429c8e5a08313490659a625005;hb=2e1323e91d3d46dca7f156078e7702aff3875897;hp=6402f69b8e6d2de59a25ff6984ff9c91db647422;hpb=ba6e4eda772f869a43e61d96d7b9f7d5c38d81e2;p=synfig.git diff --git a/synfig-core/src/modules/mod_svg/svg_parser.h b/synfig-core/src/modules/mod_svg/svg_parser.h index 6402f69..3ac8f9b 100644 --- a/synfig-core/src/modules/mod_svg/svg_parser.h +++ b/synfig-core/src/modules/mod_svg/svg_parser.h @@ -65,13 +65,13 @@ typedef struct stop_t{ float pos; }ColorStop; typedef struct linear_g{ - char name[40]; + char name[80]; float x1,x2,y1,y2; std::list *stops; Matrix *transform; }LinearGradient; typedef struct radial_g{ - char name[40]; + char name[80]; float cx,cy;//center point //float fx,fy; //not supported by Synfig float r; //radius @@ -213,6 +213,7 @@ private: int getGreen(String hex); int getBlue(String hex); int hextodec(String hex); + int getColor(String name, int position); float getDimension(const String ac); //string functions void removeS(String *input);