diff --git a/app/src/nativecode/main.c b/app/src/nativecode/main.c index ed74093..e98f68f 100644 --- a/app/src/nativecode/main.c +++ b/app/src/nativecode/main.c @@ -560,7 +560,7 @@ int main( int argc, char ** argv ) while(1) { - int i; +//graphic-triangles int i; iframeno++; //notification if( iframeno == 200 ) @@ -590,7 +590,7 @@ int main( int argc, char ** argv ) CNFGPenX = 0; CNFGPenY = 480; char st[50]; - sprintf( st, "%dx%d %d %d %d %d %d %d\n%d %d", screenx, screeny, lastbuttonx, lastbuttony, lastmotionx, lastmotiony, lastkey, lastkeydown, lastbid, lastmask); + sprintf( st, "%ld\n%dx%d %d %d %d %d %d %d\n%d %d",iframeno, screenx, screeny, lastbuttonx, lastbuttony, lastmotionx, lastmotiony, lastkey, lastkeydown, lastbid, lastmask); CNFGDrawText( st, 10 ); CNFGSetLineWidth( 2 ); @@ -615,28 +615,28 @@ int main( int argc, char ** argv ) //texts CNFGDrawText( tw, 4 ); //texts } //texts } +//graphic-triangles +//graphic-triangles // Green triangles +//graphic-triangles CNFGPenX = 0; +//graphic-triangles CNFGPenY = 0; +//graphic-triangles CNFGColor( 0x00FF00FF ); +//graphic-triangles +//graphic-triangles for( i = 0; i < 400; i++ ) +//graphic-triangles { +//graphic-triangles RDPoint pp[3]; +//graphic-triangles pp[0].x = (short)(50*sin((float)(i+iframeno)*.01) + (i%20)*30); +//graphic-triangles pp[0].y = (short)(50*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; +//graphic-triangles pp[1].x = (short)(20*sin((float)(i+iframeno)*.01) + (i%20)*30); +//graphic-triangles pp[1].y = (short)(50*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; +//graphic-triangles pp[2].x = (short)(10*sin((float)(i+iframeno)*.01) + (i%20)*30); +//graphic-triangles pp[2].y = (short)(30*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; +//graphic-triangles CNFGTackPoly( pp, 3 ); +//graphic-triangles } - // Green triangles - CNFGPenX = 0; - CNFGPenY = 0; - CNFGColor( 0x00FF00FF ); - - for( i = 0; i < 400; i++ ) - { - RDPoint pp[3]; - pp[0].x = (short)(50*sin((float)(i+iframeno)*.01) + (i%20)*30); - pp[0].y = (short)(50*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; - pp[1].x = (short)(20*sin((float)(i+iframeno)*.01) + (i%20)*30); - pp[1].y = (short)(50*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; - pp[2].x = (short)(10*sin((float)(i+iframeno)*.01) + (i%20)*30); - pp[2].y = (short)(30*cos((float)(i+iframeno)*.01) + (i/20)*20)+700; - CNFGTackPoly( pp, 3 ); - } - - // Last WebMessage - CNFGColor( 0xFFFFFFFF ); - CNFGPenX = 0; CNFGPenY = 100; -// CNFGDrawText( fromJSBuffer, 6 ); +//webview // Last WebMessage +//webview CNFGColor( 0xFFFFFFFF ); +//webview CNFGPenX = 0; CNFGPenY = 100; +//webview // CNFGDrawText( fromJSBuffer, 6 ); int x, y; for( y = 0; y < 256; y++ )