mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	when drawing circle_around_center, be more precise, and also use POLY_FORCEWIDE
This commit is contained in:
		| @@ -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 | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue