openfl/openfl-html5 — pull request #38 by fserb (2014-05-01 11:57:33+00:00)
Title: Fix line drawing graphics

Try to fix the following example:

```
var g = sprite.graphics;
g.lineStyle(1, 0x000000);
g.drawCircle(10, 10, 10);
```

this was currently making the circle start as a path on `0,0` then draw a line to the first point of the circle, then the circle.

I can't think of any case that would break because of this initial `moveTo`, but maybe something else depends on this. It's clearly not what Flash does.

This commit also clears up the case where `EndFill()` didn't stop filling the next path (the `__closePath(true)`).

I've also replaced some duplicate code on the end of commands execution.