diff --git a/src/video.cpp b/src/video.cpp index b94a242f..05f8f35f 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -197,10 +197,12 @@ void FCEU_PutImage(void) } else { - //Some messages need to be displayed before the avi is dumped DrawMessage(true); + //Lua gui should draw before the avi is dumped. + FCEU_LuaGui(XBuf); + //Update AVI before overlay stuff is written if(!FCEUI_EmulationPaused()) FCEUI_AviVideoUpdate(XBuf); @@ -230,8 +232,6 @@ void FCEU_PutImage(void) if(FCEUD_ShouldDrawInputAids()) FCEU_DrawInput(XBuf); - FCEU_LuaGui(XBuf); - //Fancy input display code if(input_display) {