Regression fix: Lua functions which draw to the screen work again.
This commit is contained in:
parent
17c30c48c5
commit
2890c4b075
|
@ -693,6 +693,8 @@ void DoDisplay()
|
||||||
ColorspaceApplyIntensityToBuffer32<false, false>(video.buffer, pixCount, displayInfo.backlightIntensity[NDSDisplayID_Main]);
|
ColorspaceApplyIntensityToBuffer32<false, false>(video.buffer, pixCount, displayInfo.backlightIntensity[NDSDisplayID_Main]);
|
||||||
ColorspaceApplyIntensityToBuffer32<false, false>(video.buffer + pixCount, pixCount, displayInfo.backlightIntensity[NDSDisplayID_Touch]);
|
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 (AnyLuaActive())
|
||||||
{
|
{
|
||||||
if (sthread_isself(display_thread))
|
if (sthread_isself(display_thread))
|
||||||
|
@ -707,7 +709,6 @@ void DoDisplay()
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw hud
|
// draw hud
|
||||||
aggDraw.hud->clear();
|
|
||||||
DoDisplay_DrawHud();
|
DoDisplay_DrawHud();
|
||||||
if (displayMethod == DISPMETHOD_DDRAW_HW || displayMethod == DISPMETHOD_DDRAW_SW)
|
if (displayMethod == DISPMETHOD_DDRAW_HW || displayMethod == DISPMETHOD_DDRAW_SW)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue