Increase line thickness
authorDiane Trout <diane@caltech.edu>
Wed, 22 Mar 2006 03:00:12 +0000 (03:00 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 22 Mar 2006 03:00:12 +0000 (03:00 +0000)
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.

alg/glseqbrowser.cpp
alg/glsequence.cpp

index 7a5d683ce22132782bb63d2cbeb52f573c9acca9..fa5d6ccc5c95f86248650030a69ab2dded52449c 100644 (file)
@@ -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;
index 6b6f2d6e5e430b6bc8c20ae1ea0b527da0bc2183..9b730d106d5519fba767948df8f74831c670a86c 100644 (file)
@@ -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<annot>& annots = seq.annotations();
   const std::list<motif>& 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);