1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 11:44:48 +00:00

when drawing circle_around_center, be more precise, and also use POLY_FORCEWIDE

This commit is contained in:
Zeno Rogue 2024-05-25 11:46:37 +02:00
parent 03b89f053b
commit 89763be7d2

View File

@ -2526,13 +2526,14 @@ void circle_around_center(ld radius, color_t linecol, color_t fillcol, PPR prio)
#if CAP_QUEUE
ld rad = 10;
if(euclid) rad = 1000;
for(int i=0; i<=360; i++) curvepoint(xspinpush0(i * degree, rad));
for(int i=0; i<=36000; i+=10) curvepoint(xspinpush0(i * degree / 100., rad));
auto& c = queuecurve(shiftless(Id), linecol, fillcol, prio);
if(pmodel == mdDisk && hyperbolic && pconf.alpha <= -1)
c.flags |= POLY_FORCE_INVERTED;
if(pmodel == mdJoukowsky)
c.flags |= POLY_FORCE_INVERTED;
c.flags |= POLY_ALWAYS_IN;
c.flags |= POLY_FORCEWIDE;
#endif
}