summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-28 09:57:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-28 09:57:49 -0700
commit8394828806baf050fa833402c969139d52dc221d (patch)
tree11f220c56b05030b3b45ec39a0da4b7fd7b41964 /profile.h
parentb947cc924ff5c78ca7e0561d3ee3891207bea5e6 (diff)
downloadsubsurface-8394828806baf050fa833402c969139d52dc221d.tar.gz
Fix the positioning of text in the dive profile
This had been bugging me for a while - the label texts were all not quite where I expected them to be. I think this looks much better now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.h b/profile.h
index 2b2c7bff5..5190c54f8 100644
--- a/profile.h
+++ b/profile.h
@@ -86,8 +86,9 @@ void setup_pp_limits(struct graphics_context *gc);
#define CENTER (-0.5)
#define LEFT (0.0)
-#define TOP (1)
-#define MIDDLE (0)
+#define LINE_DOWN (1)
+#define TOP (0)
+#define MIDDLE (-0.5)
#define BOTTOM (-1)
#define SCALEXGC(x) (((x) - gc.leftx) / (gc.rightx - gc.leftx) * gc.maxx)