X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Foptions.c;fp=src%2Foptions.c;h=2c3db78bfc92903e31e2ef07ff1df11fbc71e6f7;hb=dbe159fcd090ca605fe8a45dea714760f430e237;hp=b9c8e51356cfaec5a882cd12f29232e6959262e9;hpb=7e576adc58f91db8dd89cffd1c4fd7401c70e36c;p=retroray
diff --git a/src/options.c b/src/options.c
index b9c8e51..2c3db78 100644
--- a/src/options.c
+++ b/src/options.c
@@ -24,6 +24,7 @@ along with this program. If not, see .
#define DEF_XRES 640
#define DEF_YRES 480
+#define DEF_BPP 32
#define DEF_VSYNC 1
#define DEF_FULLSCR 0
#define DEF_MOUSE_SPEED 50
@@ -31,7 +32,7 @@ along with this program. If not, see .
struct options opt = {
- DEF_XRES, DEF_YRES,
+ DEF_XRES, DEF_YRES, DEF_BPP,
DEF_VSYNC,
DEF_FULLSCR,
DEF_MOUSE_SPEED, DEF_SBALL_SPEED,
@@ -48,6 +49,7 @@ int load_options(const char *fname)
opt.xres = ts_lookup_int(cfg, "options.video.xres", DEF_XRES);
opt.yres = ts_lookup_int(cfg, "options.video.yres", DEF_YRES);
+ opt.bpp = ts_lookup_int(cfg, "options.video.bpp", DEF_BPP);
opt.vsync = ts_lookup_int(cfg, "options.video.vsync", DEF_VSYNC);
opt.fullscreen = ts_lookup_int(cfg, "options.video.fullscreen", DEF_FULLSCR);
@@ -79,6 +81,7 @@ int save_options(const char *fname)
fprintf(fp, "\tvideo {\n");
WROPT(2, "xres = %d", opt.xres, DEF_XRES);
WROPT(2, "yres = %d", opt.yres, DEF_YRES);
+ WROPT(2, "bpp = %d", opt.bpp, DEF_BPP);
WROPT(2, "vsync = %d", opt.vsync, DEF_VSYNC);
WROPT(2, "fullscreen = %d", opt.fullscreen, DEF_FULLSCR);
fprintf(fp, "\t}\n");