Ticket Created
over 3 years ago

WERETECH-11737

red circle drawn around 390x390 round devices in the simulator

Hey, I am working a few days around my new watch face design and there's a problem I've encountered only in the Venu and the Venu Mercedes-Benz edition, I've used

dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
        dc.drawCircle(dc.getWidth()/2, dc.getHeight()/2, dc.getWidth()/1.8);
        dc.fillCircle(dc.getWidth()/2, dc.getHeight()/2, dc.getWidth()/1.8);
to get a black background (the reason for the /1.8 was because I had the problem with other devices but using '/1.8' instead of '/2' solved it). In those devices I get a red circle around the device's screen: https://ibb.co/4ZZcnqT (kinda hard to see but I afraid that if the problem is not with the simulator, then it will be really clear in real life and I will get bad reviews for this). Did anyone else encountered the same problem, anyone knows how to solve it? 

Also if anyone has a Venu or Venu Mercedes-Benz edition and can check for me if this problem occurs in real life device and not only in the simulator It will be really appreciated. Here's the link to the prg file - https://filebin.net/pfnfwpy1kkqi5nab .

TY in advance for anyone that will try to help! It is the very last thing I need to fix before uploading it to the connect iq shop!

  •  Yes. This is how my onUpdate() starts:
    dc.clear();
    dc.setPenWidth(20);
    dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
    dc.drawCircle(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() / 1.8);
    dc.fillCircle(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() / 1.8);
    if (dc.getWidth() == 390) {dc.drawArc(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() /2, 0, 0, 359);}
  • But do you use dc.clear() at the start of your onUpdate()?
  • I didn't know about this fiture but I tried now this:
    dc.setPenWidth(20);
            dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
            dc.drawCircle(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() / 1.8);
            dc.fillCircle(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() / 1.8);
            if (dc.getWidth() == 390) {dc.drawArc(dc.getWidth() /2, dc.getHeight() /2, dc.getWidth() /2, 0, 0, 359);}
    the result is still the same
  • What are you using as the radius?  Do are clearing the screen with the background color, right? While this doesn't use drawCircle, it does use drawArc with the venu, so similar. /resized-image/__size/320x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633384354256v1.png
  • Hey Jim, I thought that it was the solution but it didn't work out for me. It stayed the same even after setting the pen width to 20