From: Diane Trout Date: Wed, 22 Mar 2006 03:00:12 +0000 (+0000) Subject: Increase line thickness X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=commitdiff_plain;h=d8f5917c305898ccab08cf4d8dcb4d8e191c793c;p=mussa.git Increase line thickness On some OS X machines the lines on the opengl canvas were nearly illegible. I'm guessing it was because they were being rendered as sub-pixel objects Hopefully this'll fix those problems. --- diff --git a/alg/glseqbrowser.cpp b/alg/glseqbrowser.cpp index 7a5d683..fa5d6cc 100644 --- a/alg/glseqbrowser.cpp +++ b/alg/glseqbrowser.cpp @@ -469,7 +469,7 @@ void GlSeqBrowser::draw_tracks() const void GlSeqBrowser::draw_segments() const { - glLineWidth(0.1); + glLineWidth(1); // each vector contains path_segment_maps of all the connections // between this track and the next path_segment_map_vector::const_iterator psmv_i; diff --git a/alg/glsequence.cpp b/alg/glsequence.cpp index 6b6f2d6..9b730d1 100644 --- a/alg/glsequence.cpp +++ b/alg/glsequence.cpp @@ -209,7 +209,6 @@ void GlSequence::draw_track(GLfloat left, GLfloat right) const void GlSequence::draw_annotations(GLfloat left, GLfloat right) const { // draw annotations - glLineWidth(seq_height); GLfloat annotation_z = seq_z + 1.0; const std::list& annots = seq.annotations(); const std::list& motifs = seq.motifs(); @@ -294,7 +293,7 @@ void GlSequence::draw_sequence(GLfloat left, GLfloat right) const { // FIXME: basically this needs to be greater than the number of annotations const GLfloat z = 30; - glLineWidth(0.3); + glLineWidth(1); glColor3fv(drawColor.get()); Sequence::const_iterator seq_itor = sequence_begin(left, right);