strstr is our friend, thanks merry

This commit is contained in:
Mikael Magnusson 2006-08-24 22:04:19 +00:00
parent 766e7ae9bf
commit d4b90d3641

View file

@ -1201,10 +1201,10 @@ static void parse_appearance(gchar *tex, RrSurfaceColorType *grad,
*grad = RR_SURFACE_MIRROR_HORIZONTAL;
else if (strstr(tex, "horizontal") != NULL)
*grad = RR_SURFACE_HORIZONTAL;
else if (strstr(tex, "vertical") != NULL)
*grad = RR_SURFACE_VERTICAL;
else if (strstr(tex, "splitvertical") != NULL)
*grad = RR_SURFACE_SPLIT_VERTICAL;
else if (strstr(tex, "vertical") != NULL)
*grad = RR_SURFACE_VERTICAL;
else
*grad = RR_SURFACE_DIAGONAL;
} else {