Example #1
0
void Side::draw ( wxBufferedDC& dc ) {
	#if NATIVEZOOMING
	double z = 1.0;
	#else
	double z = Billiard::zoom;
	#endif
	
	dc.SetBrush( wxBrush( *wxWHITE ) );
	
	dc.DrawRoundedRectangle( ( beg.x - ( !type ? RADIUS : 0.0 ) ) * z, 
				 ( beg.y - ( type ? RADIUS : 0.0 ) ) * z, 
				 ( !type ? end.x - beg.x + 2.0 * RADIUS : dir * 100.0 ) * z,
				 ( type ? end.y - beg.y + 2.0 * RADIUS : dir * 100.0 ) * z, RADIUS * z );
	
}