summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-20 21:03:48 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-20 21:03:48 +0000
commit91e8400448873bd08bd509862f9b6c7d30f29e5b (patch)
treea44b6984e9496dd257303dcc5d319f6f8620cedd /crawl-ref/source/initfile.cc
parent8be1faf8bf1230e22d272720c54bba62d955bc74 (diff)
downloadcrawl-ref-91e8400448873bd08bd509862f9b6c7d30f29e5b.tar.gz
crawl-ref-91e8400448873bd08bd509862f9b6c7d30f29e5b.zip
Adding auto-sizing for font, map, and window sizes. Windows should fit on the screen by default now. The options are still somewhat of a mess, but I don't think that they'll need to be modified by most people.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7889 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc21
1 files changed, 11 insertions, 10 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 5763bdc482..6dd78738ba 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -849,22 +849,22 @@ void game_options::reset_options()
// font selection
tile_font_crt_file = "VeraMono.ttf";
- tile_font_crt_size = 15;
+ tile_font_crt_size = 0;
tile_font_stat_file = "VeraMono.ttf";
- tile_font_stat_size = 16;
+ tile_font_stat_size = 0;
tile_font_msg_file = "VeraMono.ttf";
- tile_font_msg_size = 14;
+ tile_font_msg_size = 0;
tile_font_tip_file = "VeraMono.ttf";
- tile_font_tip_size = 15;
+ tile_font_tip_size = 0;
tile_font_lbl_file = "Vera.ttf";
- tile_font_lbl_size = 14;
+ tile_font_lbl_size = 0;
// window layout
tile_key_repeat = true;
- tile_full_screen = false;
- tile_window_width = 1024;
- tile_window_height = 768;
- tile_map_pixels = 4;
+ tile_full_screen = SCREENMODE_AUTO;
+ tile_window_width = 0;
+ tile_window_height = 0;
+ tile_map_pixels = 0;
tile_tooltip_ms = 1000;
#endif
@@ -2998,7 +2998,8 @@ void game_options::read_option_line(const std::string &str, bool runscript)
}
else INT_OPTION(tile_font_lbl_size, 1, INT_MAX);
else BOOL_OPTION(tile_key_repeat);
- else BOOL_OPTION(tile_full_screen);
+ else if (key == "tile_full_screen")
+ tile_full_screen = (screen_mode)_read_bool(field, tile_full_screen);
else INT_OPTION(tile_window_width, 1, INT_MAX);
else INT_OPTION(tile_window_height, 1, INT_MAX);
else INT_OPTION(tile_map_pixels, 1, INT_MAX);