Adapt gtk-glade to new frameskip api, the behaviour looks a bit saner that the gtk one :|

This commit is contained in:
riccardom 2009-05-24 08:49:08 +00:00
parent eb0bc23d6e
commit 2fd1266680
1 changed files with 3 additions and 5 deletions

View File

@ -133,11 +133,9 @@ gboolean EmuLoop(gpointer data)
{
if(desmume_running()) /* Si on est en train d'executer le programme ... */
{
if(Frameskip == 0)
NDS_SkipFrame(false);
else
NDS_SkipFrame(((fsFrameCount % (Frameskip+1)) == 0) ? false : true);
if(Frameskip != 0 && (fsFrameCount % (Frameskip+1)) != 0)
NDS_SkipNextFrame();
fsFrameCount++;
fps_FrameCount++;