JHGuitarFreak/UQM-MegaMod-Archived

[macOS] Skewed orbit lines in 1280x960 when building on Xcode greater than 3.2.6

Closed this issue · 1 comments

Like the title says. Orbit lines are skewed in 1280x960 when compiled with Xcode greater than 3.2.6.

I've tried expanding variable width on the function that creates the lines to compensate for overflows but that didn't work out. But the guesstimation at the moment is that it could be a macOS specific Clang issue.

screen shot 2018-03-04 at 7 49 45 am
screen shot 2018-03-04 at 7 50 08 am

I have just fixed this bug by expanding the variable width of Asquared, TwoAsquared, Bsquared, TwoBsquared, d, dx, dy inside drawOval and drawFilledOval to "long long" from "long".

Screen Shot 2019-03-20 at 8 24 12 AM