summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-11 01:58:59 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-11 03:14:56 +0200
commit7fddca25532c09a083f1685dc4867ee2982fbf47 (patch)
treedf1f3cfb66172ed8a850d384f5f648bf26434b8a /crawl-ref/source/tilesdl.cc
parent77598ac1b781e9743f0a5efecfed6a3a55c6d9d7 (diff)
downloadcrawl-ref-7fddca25532c09a083f1685dc4867ee2982fbf47.tar.gz
crawl-ref-7fddca25532c09a083f1685dc4867ee2982fbf47.zip
Don't claim auto_sacrifice is a "generic option", rename its enums.
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 96f80f9e3d..643425d927 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -1057,21 +1057,22 @@ bool TilesFramework::is_using_small_layout()
#ifdef TOUCH_UI
switch (Options.tile_use_small_layout)
{
- case OPT_YES:
+ case B_TRUE:
return true;
- case OPT_NO:
+ case B_FALSE:
return false;
- case OPT_AUTO:
+ case B_MAYBE:
default:
#ifdef __ANDROID__
- Options.tile_use_small_layout = (SDL_ANDROID_GetY16Inches()<40) ? OPT_YES : OPT_NO; // about 2.5" high
+ Options.tile_use_small_layout = (SDL_ANDROID_GetY16Inches()<40) ?
+ B_TRUE : B_FALSE; // about 2.5" high
#else
- Options.tile_use_small_layout = (m_windowsz.x<=480) ? OPT_YES : OPT_NO;
+ Options.tile_use_small_layout = (m_windowsz.x<=480) ? B_TRUE : B_FALSE;
#endif
- return Options.tile_use_small_layout == OPT_YES;
+ return Options.tile_use_small_layout == B_TRUE;
}
#else
- return Options.tile_use_small_layout == OPT_YES;
+ return Options.tile_use_small_layout == B_TRUE;
#endif
}
void TilesFramework::zoom_dungeon(bool in)