From 948f7154fc7822f9db42eca2f8c4024b529ec2c3 Mon Sep 17 00:00:00 2001 From: gocha Date: Sat, 22 Aug 2009 13:37:52 +0000 Subject: [PATCH] Fix for Lua drawing. It might not a proper way. Anyway I commit the change. --- src/windows/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/windows/main.cpp b/src/windows/main.cpp index dae8202f3..2b392da79 100644 --- a/src/windows/main.cpp +++ b/src/windows/main.cpp @@ -864,6 +864,7 @@ static void DoDisplay(bool firstTime) //we only do this once per emulated frame aggDraw.hud->attach((u8*)video.buffer, 256, 384, 1024); DoDisplay_DrawHud(); + CallRegisteredLuaFunctions(LUACALL_AFTEREMULATIONGUI); } //apply user's filter @@ -874,8 +875,6 @@ static void DoDisplay(bool firstTime) void Display() { - CallRegisteredLuaFunctions(LUACALL_AFTEREMULATIONGUI); - video.srcBuffer = (u8*)GPU_screen; DoDisplay(true); }