projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add needed code to show random splash between two
[synfig.git]
/
synfig-core
/
src
/
modules
/
mod_svg
/
svg_parser.h
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
(file)
--- 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{
float pos;
}ColorStop;
typedef struct linear_g{
- char name[
4
0];
+ char name[
8
0];
float x1,x2,y1,y2;
std::list<ColorStop*> *stops;
Matrix *transform;
}LinearGradient;
typedef struct radial_g{
float x1,x2,y1,y2;
std::list<ColorStop*> *stops;
Matrix *transform;
}LinearGradient;
typedef struct radial_g{
- char name[
4
0];
+ char name[
8
0];
float cx,cy;//center point
//float fx,fy; //not supported by Synfig
float r; //radius
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 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);
float getDimension(const String ac);
//string functions
void removeS(String *input);