Hi,
/** Draws a rounded rectangle. The roundness value should be between 0.0 and
1.0, and determines how
* much of the corner is rounded off. */
void csPen::DrawRoundedRect (uint x1, uint y1, uint x2, uint y2,
uint roundness)
{
if (roundness == 0)
{
DrawRect (x1,y1,x2,y2);
return;
}
float width = x2-x1;
float height = y2-y1;
float center_x = x1+(width/2);
float center_y = y1+(height/2);
*** float y_round = roundness;
*** float x_round = roundness;
...
Why is roundness a uint? Correct me if I'm wrong but uint is an unsigned
integer => integer > 0, and since this is clipped from 0 to 1, I only have 2
choices ... (?)
Thanks
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]