Fixed bug when using EXPERIMENTAL_TIMING would cause a compile error.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@64 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2002-04-09 16:06:28 +00:00
parent 62b7ae6038
commit 96de01ffb7
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: mainSDL.cxx,v 1.18 2002-03-28 23:11:20 stephena Exp $ // $Id: mainSDL.cxx,v 1.19 2002-04-09 16:06:28 stephena Exp $
//============================================================================ //============================================================================
#include <fstream> #include <fstream>
@ -1388,7 +1388,7 @@ int main(int argc, char* argv[])
// Set up timing stuff // Set up timing stuff
uInt32 startTime, frameTime, virtualTime, currentTime; uInt32 startTime, frameTime, virtualTime, currentTime;
uInt32 numberOfFrames = 0; uInt32 numberOfFrames = 0;
uInt32 timePerFrame = (uInt32) (1000000.0 / (double) theDesiredFrameRate); uInt32 timePerFrame = (uInt32) (1000000.0 / (double) settings->theDesiredFrameRate);
// Set the base for the timers // Set the base for the timers
virtualTime = getTicks(); virtualTime = getTicks();

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: mainX11.cxx,v 1.19 2002-03-28 23:11:21 stephena Exp $ // $Id: mainX11.cxx,v 1.20 2002-04-09 16:06:28 stephena Exp $
//============================================================================ //============================================================================
#include <fstream> #include <fstream>
@ -1287,7 +1287,7 @@ int main(int argc, char* argv[])
// Set up timing stuff // Set up timing stuff
uInt32 startTime, frameTime, virtualTime, currentTime; uInt32 startTime, frameTime, virtualTime, currentTime;
uInt32 numberOfFrames = 0; uInt32 numberOfFrames = 0;
uInt32 timePerFrame = (uInt32) (1000000.0 / (double) theDesiredFrameRate); uInt32 timePerFrame = (uInt32) (1000000.0 / (double) settings->theDesiredFrameRate);
// Set the base for the timers // Set the base for the timers
virtualTime = getTicks(); virtualTime = getTicks();