vrchess

diff src/vr/opt.h @ 8:90abf4b93cc9

fixed line endings fixed viewport when returning to original framebuffer
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Aug 2014 17:24:43 +0300
parents bd8202d6d28d
children
line diff
     1.1 --- a/src/vr/opt.h	Fri Aug 22 16:55:16 2014 +0300
     1.2 +++ b/src/vr/opt.h	Fri Aug 22 17:24:43 2014 +0300
     1.3 @@ -1,21 +1,21 @@
     1.4 -#ifndef OPT_H_
     1.5 -#define OPT_H_
     1.6 -
     1.7 -enum opt_type { OTYPE_INT, OTYPE_FLOAT };
     1.8 -
     1.9 -struct option {
    1.10 -	enum opt_type type;
    1.11 -	int ival;
    1.12 -	float fval;
    1.13 -};
    1.14 -
    1.15 -void *create_options(void);
    1.16 -void destroy_options(void *optdb);
    1.17 -
    1.18 -void set_option_int(void *optdb, const char *key, int val);
    1.19 -void set_option_float(void *optdb, const char *key, float val);
    1.20 -
    1.21 -int get_option_int(void *optdb, const char *key, int *val);
    1.22 -int get_option_float(void *optdb, const char *key, float *val);
    1.23 -
    1.24 -#endif	/* OPT_H_ */
    1.25 \ No newline at end of file
    1.26 +#ifndef OPT_H_
    1.27 +#define OPT_H_
    1.28 +
    1.29 +enum opt_type { OTYPE_INT, OTYPE_FLOAT };
    1.30 +
    1.31 +struct option {
    1.32 +	enum opt_type type;
    1.33 +	int ival;
    1.34 +	float fval;
    1.35 +};
    1.36 +
    1.37 +void *create_options(void);
    1.38 +void destroy_options(void *optdb);
    1.39 +
    1.40 +void set_option_int(void *optdb, const char *key, int val);
    1.41 +void set_option_float(void *optdb, const char *key, float val);
    1.42 +
    1.43 +int get_option_int(void *optdb, const char *key, int *val);
    1.44 +int get_option_float(void *optdb, const char *key, float *val);
    1.45 +
    1.46 +#endif	/* OPT_H_ */