Regression fix: Lua functions which draw to the screen work again.

This commit is contained in:
SuuperW 2018-08-15 00:47:27 -05:00
parent 17c30c48c5
commit 2890c4b075
1 changed files with 2 additions and 1 deletions

View File

@ -693,6 +693,8 @@ void DoDisplay()
ColorspaceApplyIntensityToBuffer32<false, false>(video.buffer, pixCount, displayInfo.backlightIntensity[NDSDisplayID_Main]);
ColorspaceApplyIntensityToBuffer32<false, false>(video.buffer + pixCount, pixCount, displayInfo.backlightIntensity[NDSDisplayID_Touch]);
// Lua draws to the HUD buffer, so clear it here instead of right before redrawing the HUD.
aggDraw.hud->clear();
if (AnyLuaActive())
{
if (sthread_isself(display_thread))
@ -707,7 +709,6 @@ void DoDisplay()
}
// draw hud
aggDraw.hud->clear();
DoDisplay_DrawHud();
if (displayMethod == DISPMETHOD_DDRAW_HW || displayMethod == DISPMETHOD_DDRAW_SW)
{