Thank you for your reply.
I have investigated a bit more precisely and found that we needed to give even larger number as follows.
const unsigned long largeNumber = 40.e6f;
std::cout << "drawing a rectangle\n";
g.drawRect(0, 0, largeNumber, largeNumber, 2);
std::cout << "drawing a rounded rectangle\n";
g.drawRoundedRectangle(0, 0, largeNumber, largeNumber, 5, 2);
std::cout << "done\n";
In my environment, JUCE v6.0.8, macOS 10.15.6, g.drawRect works fine, but the program stuck in drawRoundedRectangle.
A smaller number than 40.e6f would be able to reproduce the stuck but it seems like not always.
It would be nice if you could try another number as well.
CPU is near 100% and furthermore, occupied memory size increases rapidly.
Basically I would not use such a large number to draw a rectangle, but my program lets users zoom UIs can easily reach the number.
The zoom function is not something I can realize with AffirmTransformation but need to manipulate the component’s bounds.
Thank you for your help!