View Full Version : Patch: No minimum radius in CL_Draw::circle a.k.a Canvas::circle

11-03-2012, 07:01 AM
I was quite puzzled when I tried to draw a small red circle and my entire screen turned red. Turns out CL_Draw::gradient_circle makes some assumptions about the size of pixels, but I like mine small: [-1;1] screen coordinates.

So here is a patch that fixes that:

Instead of setting a minimum number of triangles, like I did, one could calculate the requirement from the gc's modelview... but I think it is not worth the effort.

11-03-2012, 07:04 AM
And, the 3.0 version: 1275 Couldn't figure out how to put both in one message.

11-05-2012, 09:03 AM
Both patches applied, many thanks