diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-08 15:46:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-08 15:46:16 -0700 |
commit | 656b58f20554f31bd25ec7a2c3b65a1b19046062 (patch) | |
tree | 61198748a02009e9fde2c21a0a24ed5cd8a5de08 /helpers.h | |
parent | 6f06c31d0b9db9ffae45d409557864469ab169b0 (diff) | |
download | subsurface-656b58f20554f31bd25ec7a2c3b65a1b19046062.tar.gz |
Add tooltip data and cleanup size calculations
Tomaz' code had a fixed height per tooltip item and some rather suspicious
logic how to position them (and how to size the surrounding box), based on
a fixed height in pixels per item - which of course fails if you use
larger fonts or multi line items.
This uses the bounding rects to correctly calculate the sizes and populates
the tooltip with the other dive data that we already had in a helper
function.
This also fixes a small formatting issue for gas change events.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
0 files changed, 0 insertions, 0 deletions