strstr is our friend, thanks merry
Mikael Magnusson mikachu@comhem.se
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
render/theme.c
→
render/theme.c
@@ -1201,10 +1201,10 @@ else if (strstr(tex, "mirrorhorizontal") != NULL)
*grad = RR_SURFACE_MIRROR_HORIZONTAL; else if (strstr(tex, "horizontal") != NULL) *grad = RR_SURFACE_HORIZONTAL; + else if (strstr(tex, "splitvertical") != NULL) + *grad = RR_SURFACE_SPLIT_VERTICAL; else if (strstr(tex, "vertical") != NULL) *grad = RR_SURFACE_VERTICAL; - else if (strstr(tex, "splitvertical") != NULL) - *grad = RR_SURFACE_SPLIT_VERTICAL; else *grad = RR_SURFACE_DIAGONAL; } else {