Permalink
Browse files

formatting

  • Loading branch information...
1 parent 1148c5a commit 387f8c4cb77ce80ae66681620a223abfa609a997 @tj tj committed Jul 4, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/rgba.c
View
@@ -410,12 +410,9 @@ rgba_from_name_string(const char *str, short *ok) {
uint32_t
rgba_from_string(const char *str, short *ok) {
- if ('#' == str[0])
- return rgba_from_hex_string(++str, ok);
- if (str == strstr(str, "rgba"))
- return rgba_from_rgba_string(str, ok);
- if (str == strstr(str, "rgb"))
- return rgba_from_rgb_string(str, ok);
+ if ('#' == str[0]) return rgba_from_hex_string(++str, ok);
+ if (str == strstr(str, "rgba")) return rgba_from_rgba_string(str, ok);
+ if (str == strstr(str, "rgb")) return rgba_from_rgb_string(str, ok);
return rgba_from_name_string(str, ok);
}

0 comments on commit 387f8c4

Please sign in to comment.