From b4befc985875588a4b454b112b8b79a94c26e5e6 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 14 Oct 2009 10:21:50 -0600 Subject: Add more detail to DebugWindow --- src/gui/setup_video.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui/setup_video.cpp') diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index f21f20e0..a4bd6864 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -146,8 +146,11 @@ static const char *speechModeToString(Being::Speech mode) return ""; } -static const char *overlayDetailToString(int detail) +const char *Setup_Video::overlayDetailToString(int detail) { + if (detail == -1) + detail = config.getValue("OverlayDetail", -1); + switch (detail) { case 0: return _("off"); @@ -157,8 +160,11 @@ static const char *overlayDetailToString(int detail) return ""; } -static const char *particleDetailToString(int detail) +const char *Setup_Video::particleDetailToString(int detail) { + if (detail == -1) + detail = 3 - config.getValue("particleEmitterSkip", -1); + switch (detail) { case 0: return _("low"); -- cgit v1.2.3-70-g09d2