From 85ec4f169d48c03b44ffa9d41ff23a55477bf961 Mon Sep 17 00:00:00 2001 From: feos-tas Date: Fri, 1 May 2015 18:25:39 +0000 Subject: [PATCH] Video: applied patch from #666 - lua drawings in nsf. Sound: nsf can be set to Dendy. --- trunk/src/ppu.cpp | 2 +- trunk/src/video.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/trunk/src/ppu.cpp b/trunk/src/ppu.cpp index 43d546bc..b291e666 100644 --- a/trunk/src/ppu.cpp +++ b/trunk/src/ppu.cpp @@ -1759,7 +1759,7 @@ int FCEUPPU_Loop(int skip) { kook ^= 1; } if (GameInfo->type == GIT_NSF) - X6502_Run((256 + 85) * 240); + X6502_Run((256 + 85) * (dendy ? 290 : 240)); #ifdef FRAMESKIP else if (skip) { int y; diff --git a/trunk/src/video.cpp b/trunk/src/video.cpp index 095d4105..ac831fa8 100644 --- a/trunk/src/video.cpp +++ b/trunk/src/video.cpp @@ -181,6 +181,10 @@ void FCEU_PutImage(void) { DrawNSF(XBuf); +#ifdef _S9XLUA_H + FCEU_LuaGui(XBuf); +#endif + //Save snapshot after NSF screen is drawn. Why would we want to do it before? if(dosnapsave==1) {