Commit bee19659 authored by markgrebe's avatar markgrebe
Browse files

Fixed issue where preferences changed before a game was opened were not being...

Fixed issue where preferences changed before a game was opened were not being changed.  Removed average calculation in frame loop, which was not needed any longer.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@330 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
parent 0f0625d9
......@@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: mainSDL.cxx,v 1.4 2004-07-28 23:54:39 stephena Exp $
// $Id: mainSDL.cxx,v 1.5 2004-08-02 00:28:48 markgrebe Exp $
//============================================================================
#include <fstream>
......@@ -415,6 +415,7 @@ bool handleInitialEvents(void)
{
if(key == SDLK_q) // Command-q quits
{
theSettings->saveConfig();
return(false);
}
else if(key == SDLK_o) // Command-o starts a new game
......@@ -425,6 +426,7 @@ bool handleInitialEvents(void)
}
else if(event.type == SDL_QUIT)
{
theSettings->saveConfig();
return(false);
}
}
......@@ -1134,7 +1136,6 @@ while(1) {
}
double lasttime = Atari_time();
double frametime = 0.1; /* measure time between two runs */
enableGameMenus();
......@@ -1162,9 +1163,6 @@ while(1) {
usleep((int) (delaytime * 1e6));
curtime = Atari_time();
/* make average time */
frametime = (frametime * 4.0 + curtime - lastcurtime) * 0.2;
// fps = 1.0 / frametime;
lastcurtime = curtime;
lasttime += timePerFrame;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment