gnperumal / codeswarm

Automatically exported from code.google.com/p/codeswarm
GNU General Public License v3.0
0 stars 0 forks source link

Histogram not shown #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout current version from svn
2. Run code_swarm on code_swarm repository

What is the expected output? What do you see instead?
Although the histogram has been enabled in the configuration file
(ShowHistory=true) the histogram is not drawn.

What version of the product are you using? On what operating system?
Checkout from today on Fedora 10.

Please provide any additional information below.
I have added some debug output. The drawHistory() routine is executed, but
nothing shows up. There is a lot of activity, but no histogram.

Original issue reported on code.google.com by niemueller on 14 Feb 2009 at 6:56

GoogleCodeExporter commented 9 years ago
I can't reproduce this bug and this is the first time anyone has had trouble 
with the 
histogram. Is it possible that, since code_swarm is a small project, the 
histogram is 
being drawn with very small levels? 

Original comment by michael....@gmail.com on 14 Feb 2009 at 9:38

GoogleCodeExporter commented 9 years ago
Is OpenGL enabled?  I ran into this bug myself and fixed it with these patches:
http://github.com/rictic/code_swarm/commit/a64233fdc9111a3b1ce7fb31a77be413893e9
409
http://github.com/rictic/code_swarm/commit/96880c2f9d9f906024848e8559c94b7c2a923
9ed

For whatever reason the OpenGL renderer won't draw lines.  For the simple 
vertical case we can get around this 
by drawing thin rectangles.

Original comment by ric...@gmail.com on 15 Feb 2009 at 12:49

GoogleCodeExporter commented 9 years ago

Original comment by ric...@gmail.com on 15 Feb 2009 at 12:50

GoogleCodeExporter commented 9 years ago
I also noticed that I could not get the histogram to work at the same time that 
I was 
drawing edges.

Looking at the code it seems that the edge.draw changes the strokeWeight but 
does not 
set it back the the default. 

Original comment by jeroen.j...@gmail.com on 17 Mar 2009 at 8:29

GoogleCodeExporter commented 9 years ago
The unset strokeWeight after edge drawing appeared to be the problem. Thanks!

Original comment by michael....@gmail.com on 17 Mar 2009 at 9:01