From: Konrad Rzeszutek Wilk Date: Wed, 9 Feb 2011 20:22:39 +0000 (-0500) Subject: dfbtest_fillrect: Make it do random rects across the full screen. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ef14e6fb961d9fd7d43d8e6258968f3e3bdd7305;p=xentesttools%2Fbootstrap.git dfbtest_fillrect: Make it do random rects across the full screen. --- diff --git a/root_image/tools/drfb_test/dfbtest_fillrect.c b/root_image/tools/drfb_test/dfbtest_fillrect.c index 7d69a01..7b102a5 100644 --- a/root_image/tools/drfb_test/dfbtest_fillrect.c +++ b/root_image/tools/drfb_test/dfbtest_fillrect.c @@ -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 );