From 12161027a3d3a8d90d36077dc079c2daa33ce0b9 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Thu, 22 Dec 2005 20:05:09 +0000 Subject: [PATCH] Fixed starting position --- src/meshlab/GLLogStream.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/meshlab/GLLogStream.cpp b/src/meshlab/GLLogStream.cpp index c06dd6065..4d4487dd4 100644 --- a/src/meshlab/GLLogStream.cpp +++ b/src/meshlab/GLLogStream.cpp @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.6 2005/12/22 20:05:09 glvertex +Fixed starting position + Revision 1.5 2005/11/26 18:50:56 alemochi correct syntax error @@ -73,7 +76,7 @@ void GLLogStream::Save(int Level, const char * filename ) void GLLogStream::glDraw(QGLWidget *qgl, int Level, int nlines) { static QFont qf("Helvetica",8); - const int LineWidth=15; + const int LineHeight=15; list > ::iterator li; li=S.end(); @@ -83,12 +86,12 @@ void GLLogStream::glDraw(QGLWidget *qgl, int Level, int nlines) if(li==S.end()) li=S.begin(); - int StartLine = qgl->height() - (nlines+1) * LineWidth; + int StartLine = qgl->height() - nlines * LineHeight; for(;li!=S.end();++li) { qgl->renderText(20,StartLine,(*li).second.c_str(),qf); - StartLine+=LineWidth; + StartLine+=LineHeight; } }