src/video/null_v.cpp
changeset 7739 3ce5bb98aa7d
parent 7666 a5fccd76176a
child 7741 090a32ec04c1
--- a/src/video/null_v.cpp	Thu Jul 12 17:08:56 2007 +0000
+++ b/src/video/null_v.cpp	Fri Jul 13 10:46:07 2007 +0000
@@ -10,9 +10,11 @@
 #include "null_v.h"
 
 static FVideoDriver_Null iFVideoDriver_Null;
+static uint _null_ticks = 0;
 
 const char *VideoDriver_Null::Start(const char* const *parm)
 {
+	_null_ticks = GetDriverParamInt(parm, "ticks", 1000);
 	_screen.width = _screen.pitch = _cur_resolution[0];
 	_screen.height = _cur_resolution[1];
 	/* Do not render, nor blit */
@@ -29,7 +31,7 @@
 {
 	uint i;
 
-	for (i = 0; i < 1000; i++) {
+	for (i = 0; i < _null_ticks; i++) {
 		GameLoop();
 		_screen.dst_ptr = NULL;
 		UpdateWindows();