From 1846185d38d350b070215bfa17e6e4705c7ddcbe Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 26 Aug 2011 16:01:03 +1000 Subject: [PATCH] Turned foobar indicator back on --- Graphs/gFooBar.cpp | 4 ++-- daily.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Graphs/gFooBar.cpp b/Graphs/gFooBar.cpp index d47e69ac..fc88a994 100644 --- a/Graphs/gFooBar.cpp +++ b/Graphs/gFooBar.cpp @@ -72,8 +72,8 @@ void gFooBar::paint(gGraph & w,int left, int top, int width, int height) float h=top; - glBegin(GL_LINES); glLineWidth(1); + glBegin(GL_LINES); w.qglColor(m_line_color); glVertex2f(start_px, h); glVertex2f(start_px+width, h); @@ -83,8 +83,8 @@ void gFooBar::paint(gGraph & w,int left, int top, int width, int height) double px=((1/rmx)*(w.min_x-w.rmin_x))*width; double py=((1/rmx)*(w.max_x-w.rmin_x))*width; + glLineWidth(3); glBegin(GL_LINES); - glLineWidth(4); w.qglColor(m_handle_color); glVertex2f(start_px+px-4,h); glVertex2f(start_px+py+4,h); diff --git a/daily.cpp b/daily.cpp index f3603171..c2691d2e 100644 --- a/daily.cpp +++ b/daily.cpp @@ -96,7 +96,7 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw) SF->AddLayer(AddCPAP(fg)); SF->AddLayer(new gShadowArea()); SF->AddLayer(new gYSpacer(),LayerLeft,gYAxis::Margin); - //SF->AddLayer(new gFooBar(),LayerBottom,0,10); + SF->AddLayer(new gFooBar(),LayerBottom,0,10); SF->AddLayer(new gXAxis(),LayerBottom,0,gXAxis::Margin); PRD->AddLayer(new gXGrid());