From d4b90d3641c2a9845abba9aa7d51939d59951db4 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 24 Aug 2006 22:04:19 +0000 Subject: [PATCH] strstr is our friend, thanks merry --- render/theme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/theme.c b/render/theme.c index b1cce15b..0e02ae8b 100644 --- a/render/theme.c +++ b/render/theme.c @@ -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 { -- 2.45.2