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:
parent
0749cef9e3
commit
92ff18c46e
2 changed files with 2 additions and 1 deletions
|
|
@ -4,3 +4,4 @@ std_string
|
||||||
std_vector
|
std_vector
|
||||||
stl
|
stl
|
||||||
argout_ref
|
argout_ref
|
||||||
|
shapes
|
||||||
|
|
|
||||||
|
|
@ -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( i = 0; i < 1.0; i += 1.0 / ((float)div_y) ) {
|
||||||
for( j = 0; j < 1.0; j += 1.0 / ((float)div_x) ) {
|
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" );
|
printf( "\n" );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue