Shapes example small correction.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4488 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Art Yerkes 2003-03-10 04:13:06 +00:00
commit 92ff18c46e
2 changed files with 2 additions and 1 deletions

View file

@ -4,3 +4,4 @@ std_string
std_vector
stl
argout_ref
shapes

View file

@ -13,7 +13,7 @@ void draw_shape_coverage( shape *s, int div_x, int div_y ) {
for( i = 0; i < 1.0; i += 1.0 / ((float)div_y) ) {
for( j = 0; j < 1.0; j += 1.0 / ((float)div_x) ) {
if( s->cover( i,j ) ) putchar( 'x' ); else putchar( ' ' );
if( s->cover( j,i ) ) putchar( 'x' ); else putchar( ' ' );
}
printf( "\n" );
}