]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
dfbtest_fillrect: Make it do random rects across the full screen.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 20:22:39 +0000 (15:22 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Feb 2011 20:22:39 +0000 (15:22 -0500)
root_image/tools/drfb_test/dfbtest_fillrect.c

index 7d69a01179d11a22a14ff666295541aed5c6e221..7b102a50efffe846eb15539d9b95c32f96a3e944 100644 (file)
@@ -183,7 +183,7 @@ main( int argc, char *argv[] )
      while (true) {
           for (i=0; i<100000; i++) {
                dest->SetColor( dest, rand()%256, rand()%256, rand()%256, rand()%256 );
-               dest->FillRectangle( dest, rand()%100, rand()%100, rand()%100, rand()%100 );
+               dest->FillRectangle( dest, rand()%desc.width, rand()%desc.height, rand()%desc.width, rand()%desc.height );
           }
 
           dest->Flip( dest, NULL, DSFLIP_NONE );