From 077a714b8151e6b9c14ed7796c543074b7240058 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 7 Aug 2014 14:44:28 +0200 Subject: [PATCH] Ternary legend: Minor layout tweaks --- .../ModelVisualization/RivTernarySaturationOverlayItem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ModelVisualization/RivTernarySaturationOverlayItem.cpp b/ApplicationCode/ModelVisualization/RivTernarySaturationOverlayItem.cpp index 761f4bb6fb..85404d9cd2 100644 --- a/ApplicationCode/ModelVisualization/RivTernarySaturationOverlayItem.cpp +++ b/ApplicationCode/ModelVisualization/RivTernarySaturationOverlayItem.cpp @@ -142,7 +142,8 @@ void RivTernarySaturationOverlayItem::render(cvf::OpenGLContext* oglContext, con textDrawer.addText("SGAS", cvf::Vec2f(static_cast( (size.x() / 2) - sgasTextWidth / 2 ), textPosY)); cvf::uint sgasRangeTextWidth = m_font->textExtent(m_sgasRange).x(); - textDrawer.addText(m_sgasRange, cvf::Vec2f(static_cast( (size.x() / 2) - sgasRangeTextWidth / 2 ), textPosY - lineHeightInPixels)); + textPosY -= lineHeightInPixels; + textDrawer.addText(m_sgasRange, cvf::Vec2f(static_cast( (size.x() / 2) - sgasRangeTextWidth / 2 ), textPosY)); } textDrawer.addText("SWAT", cvf::Vec2f(0.0, 10.0)); @@ -160,7 +161,8 @@ void RivTernarySaturationOverlayItem::render(cvf::OpenGLContext* oglContext, con textDrawer.renderSoftware(oglContext, camera); - renderAxisImmediateMode(textPosY - lineHeightInPixels, oglContext); + textPosY -= 3; + renderAxisImmediateMode(textPosY, oglContext); CVF_CHECK_OGL(oglContext); }