Feature: Issue #35, Add colored shadows

- Use getopt_long() instead of getopt() for argument parsing, making
  long options possible.

- Add support of colored shadows with 3 commandline switches.
This commit is contained in:
Richard Grenville
2012-09-11 21:57:50 +08:00
parent f5aed89a67
commit deaaf5c5cf
2 changed files with 58 additions and 3 deletions

View File

@ -131,6 +131,18 @@ extern int root_height, root_width;
* Functions
*/
// inline functions must be made static to compile correctly under clang:
// http://clang.llvm.org/compatibility.html#inline
static inline double normalize_d(double d) {
if (d > 1.0)
return 1.0;
if (d < 0.0)
return 0.0;
return d;
}
static int
get_time_in_milliseconds();