Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihara committed Dec 18, 2013
1 parent 465565b commit 52f3fff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RasterPropMonitor/Handlers/JSIVariableGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class JSIVariableGraph: InternalModule

public void Start()
{

if (!string.IsNullOrEmpty(borderColor))
borderColorValue = ConfigNode.ParseColor32(borderColor);
if (!string.IsNullOrEmpty(backgroundColor))
Expand Down Expand Up @@ -88,8 +87,7 @@ public bool RenderGraphs(RenderTexture screen, float cameraAspect)
{
if (backgroundTexture != null)
Graphics.Blit(backgroundTexture, screen);
else
GL.Clear(true, true, backgroundColorValue);
GL.Clear(true, (backgroundTexture == null), backgroundColorValue);

GL.PushMatrix();
// This way 0,0 is in bottom left corner, which is what we want this time.
Expand Down Expand Up @@ -141,6 +139,8 @@ public GraphLine(ConfigNode node, double xSpan, Vector2 ySpan, double secondsBet
lineColor = Color.white;
if (node.HasValue("color"))
lineColor = ConfigNode.ParseColor32(node.GetValue("color"));

JUtil.LogMessage(this, "Graphing {0} in color {1}", variableName, lineColor);
}

public void Draw(Rect screenRect, double time)
Expand Down

0 comments on commit 52f3fff

Please sign in to comment.