I have a strange problem. I want to implement a progress bar in terms of a closing fill circle. I coded it in this way:
deg = Mat.round(90 - 360 * val).toNumber();
val can only be a value between 0 and 1.
I implemented the progress bar in this way:
dc.setPenWidth(16);
dc.drawArc(120, 120, 8, Gfx.ARC_CLOCKWISE, 90, deg);
This works perfect in the beginning. Nevertheless, if val is near 1 I can see only a small stripe in the progress bar instead of an almost full circle. I debugged it and found e. g. a value of deg=-268 which is also 92 shows that problem. I then putted instead of variable deg real values in the drawArc function and found out that deg=97 works, deg=96 shows the problem. I tried it with the latest SDK and furthermore with 2.2.6. I see the problem on the real watch as well as with the newest SDK in the simulator, but I don's know why.
Did I miss something?