[PATCH] Mobile: always show divecomputer reported ceiling in red
Jan Mulder
jlmulder at xs4all.nl
Fri Feb 5 23:46:51 PST 2016
We do not not want to do decompress model calculations in the mobile app
(see 130f4cd7ac5b), but we do want to see the divecomputer reported
ceiling (in red). The latter is fixed here.
Ticket #1006
Signed-off-by: Jan Mulder <jlmulder at xs4all.nl>
---
subsurface-mobile-main.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index df25e81..7ed3e42 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -62,6 +62,11 @@ int main(int argc, char **argv)
init_ui();
loadPreferences();
prefs.animation_speed = 0;
+
+ /* always show the divecomputer reported ceiling in red */
+ prefs.dcceiling = 1;
+ prefs.redceiling = 1;
+
init_proxy();
if (no_filenames) {
if (prefs.default_file_behavior == LOCAL_DEFAULT_FILE) {
--
2.7.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160206/2de8cfa0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mobile-always-show-divecomputer-reported-ceiling-in-.patch
Type: text/x-patch
Size: 1045 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160206/2de8cfa0/attachment.bin>
More information about the subsurface
mailing list