Skip to content

Commit

Permalink
Merge pull request #144 from MSGhero/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Aug 15, 2014
2 parents 6a04ae2 + 7af5e2f commit 4f0be83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Other/Calculator/source/State.hx
Expand Up @@ -176,7 +176,7 @@ class State extends FlxState
try { outputs[4].text = HexToBin(StringTools.hex(cast(output, Int))); } catch (unknown:Dynamic) { outputs[4].color = 0xffe09f9f; outputs[4].text = "?"; }

// Draw graph (naively execute the script 150 times per frame stepping in the y-direction. This has sampling error.)
FlxSpriteUtil.drawRect(graph, 0, 0, graph.width, graph.height, 0xff000000, {thickness:2, color:0xff000000}, {hasFill:true, color:0xffffffff});
FlxSpriteUtil.drawRect(graph, 0, 0, graph.width, graph.height, 0xffffffff, {thickness:2, color:0xff000000});
FlxSpriteUtil.drawLine(graph, graph.width / 2, 1, graph.width / 2, graph.height - 1, { thickness:1, color:0xff999999 } );
FlxSpriteUtil.drawLine(graph, 1, graph.height/2, graph.width -1, graph.height/2, { thickness:1, color:0xff999999 } );
if (input.text.indexOf("y") >= 0)
Expand Down Expand Up @@ -215,4 +215,4 @@ class State extends FlxState

return out == "" ? "0" : out; // Make sure a 0 is drawn if empty
}
}
}

0 comments on commit 4f0be83

Please sign in to comment.