tavli

diff src/opt.cc @ 17:16a420432aa3

pieces on the board
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 28 Jun 2015 23:04:37 +0300
parents
children 986c0b76513f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/opt.cc	Sun Jun 28 23:04:37 2015 +0300
     1.3 @@ -0,0 +1,19 @@
     1.4 +#include <stdio.h>
     1.5 +#include "opt.h"
     1.6 +
     1.7 +Options opt;
     1.8 +
     1.9 +bool init_options(int argc, char **argv)
    1.10 +{
    1.11 +	// TODO read config files, parse args, etc...
    1.12 +
    1.13 +	opt.xres = 1280;
    1.14 +	opt.yres = 800;
    1.15 +	opt.fullscreen = false;
    1.16 +	opt.def_username = opt.saved_passwd = 0;
    1.17 +
    1.18 +	opt.piece_color[0] = v3_cons(0.3, 0.35, 0.6);
    1.19 +	opt.piece_color[1] = v3_cons(1.0, 0.75, 0.5);
    1.20 +
    1.21 +	return true;
    1.22 +}