Changeset 05a7fe1 in subsurface


Ignore:
Timestamp:
May 26, 2017, 3:52:04 PM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
7c6f30a4
Parents:
98a65b7
git-author:
Robert C. Helling <helling@…> (05/16/17 12:24:39)
git-committer:
Dirk Hohndel <dirk@…> (05/26/17 15:52:04)
Message:

Gas denisity display improvement

This combines the display with EADD since this is the same
value with a different unit. And show it for air dives as
well.

Suggested by Jan Mulder & Anton Lundin

Signed-off-by: Robert C. Helling <helling@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/profile.c

    rbb6ceba r05a7fe1  
    13341334                case NITROX:
    13351335                        ead = lrint(get_depth_units(lrint(entry->ead), NULL, &depth_unit));
    1336                         put_format(b, translate("gettextFromC", "EAD: %d%s\nEADD: %d%s\n"), ead, depth_unit, eadd, depth_unit);
    1337                         put_format(b, translate("gettextFromC", "density: %.1fg/l\n"), entry->density);
     1336                        put_format(b, translate("gettextFromC", "EAD: %d%s\nEADD: %d%s / %.1fg/ℓ\n"), ead, depth_unit, eadd, depth_unit, entry->density);
    13381337                        break;
    13391338                case TRIMIX:
    13401339                        end = lrint(get_depth_units(lrint(entry->end), NULL, &depth_unit));
    1341                         put_format(b, translate("gettextFromC", "END: %d%s\nEADD: %d%s\n"), end, depth_unit, eadd, depth_unit);
    1342                         put_format(b, translate("gettextFromC", "density: %.1fg/l\n"), entry->density);
     1340                        put_format(b, translate("gettextFromC", "END: %d%s\nEADD: %d%s / %.1fg/ℓ\n"), end, depth_unit, eadd, depth_unit, entry->density);
    13431341                        break;
    13441342                case AIR:
     1343                        put_format(b, translate("gettectFromC", "Density: %.1fg/ℓ\n"), entry->density);
    13451344                case FREEDIVING:
    13461345                        /* nothing */
Note: See TracChangeset for help on using the changeset viewer.