mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 09:24:53 +00:00
when drawing circle_around_center, be more precise, and also use POLY_FORCEWIDE
This commit is contained in:
parent
03b89f053b
commit
89763be7d2
@ -2526,13 +2526,14 @@ void circle_around_center(ld radius, color_t linecol, color_t fillcol, PPR prio)
|
|||||||
#if CAP_QUEUE
|
#if CAP_QUEUE
|
||||||
ld rad = 10;
|
ld rad = 10;
|
||||||
if(euclid) rad = 1000;
|
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);
|
auto& c = queuecurve(shiftless(Id), linecol, fillcol, prio);
|
||||||
if(pmodel == mdDisk && hyperbolic && pconf.alpha <= -1)
|
if(pmodel == mdDisk && hyperbolic && pconf.alpha <= -1)
|
||||||
c.flags |= POLY_FORCE_INVERTED;
|
c.flags |= POLY_FORCE_INVERTED;
|
||||||
if(pmodel == mdJoukowsky)
|
if(pmodel == mdJoukowsky)
|
||||||
c.flags |= POLY_FORCE_INVERTED;
|
c.flags |= POLY_FORCE_INVERTED;
|
||||||
c.flags |= POLY_ALWAYS_IN;
|
c.flags |= POLY_ALWAYS_IN;
|
||||||
|
c.flags |= POLY_FORCEWIDE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user