diff options
-rw-r--r-- | profile.h | 5 | ||||
-rw-r--r-- | qt-ui/profilegraphics.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -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) diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 722cea6bd..bf244e9e9 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -332,7 +332,7 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw) gc.leftx = 0; gc.rightx = 1.0; gc.topy = 0; gc.bottomy = 1.0; - text_render_options_t computer = {DC_TEXT_SIZE, TIME_TEXT, LEFT, MIDDLE}; + text_render_options_t computer = {DC_TEXT_SIZE, TIME_TEXT, LEFT, TOP}; diveComputer = plot_text(&computer, QPointF(gc.leftx, gc.bottomy), nick); // The Time ruler should be right after the DiveComputer: timeMarkers->setPos(0, diveComputer->y()); @@ -926,7 +926,7 @@ void ProfileGraphicsView::plot_depth_profile() timeMarkers = new QGraphicsRectItem(); /* now the text on the time markers */ - struct text_render_options tro = {DEPTH_TEXT_SIZE, TIME_TEXT, CENTER, TOP}; + struct text_render_options tro = {DEPTH_TEXT_SIZE, TIME_TEXT, CENTER, LINE_DOWN}; if (maxtime < 600) { /* Be a bit more verbose with shorter dives */ for (i = incr; i < maxtime; i += incr) |