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!

  • When you folks are trying this, do you have Anti-aliasing for primitives on or off? in init I have
    		if(Toybox.Graphics.Dc has :setAntiAlias){
    			hasAA=true;			
    		}
    And then in onUpdate(), if(hasAA) {dc.setAntiAlias(true);} I'm not seeing this "red circle" in any of the posted pics or in the sim with my own apps BTW. Could this be a result of the color settings on the pc/mac?
  • Cool. Good luck with your project! I hope the "4 overlapping circles" trick will help one day, as I found it pretty annoying myself when I ran into the "simple" problem of "how to draw a circle properly".
  • I did it earlier because without doing it the numbers went really weird but now everything looks very fine so I don't know what caused it but yeh there's no need for the circle EDIT: I see you did the same thing as I did to check it.
  • I tried the following code and it seems to work fine (except for the weird red circle in the sim, for Venu, but that doesn't seem to be a problem with your code).
        function onUpdate(dc as Dc) as Void {
            dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_BLACK);
            dc.clear();
    		dc.setPenWidth(1);
    		
            var clockTime = System.getClockTime();
    //...
    /resized-image/__size/320x240/__key/commentfiles/fb5d84b10a5745448a7a45dafc1faa43-6e81f76c-4019-4ee1-9f89-903b0c272bdb/pastedimage1633391654763v1.png
  • Sorry, I still don't get the point of drawing a circle? You're drawing a black circle on a black background -- nobody will see anything.