Add FrameEnd() for overlays

This commit is contained in:
tobid7 2022-04-10 00:41:16 +02:00
parent 078e0d0d8b
commit d0e4d2296c
2 changed files with 8 additions and 2 deletions

View File

@ -848,7 +848,7 @@ void RenderD7::DrawMetrikOvl()
//RenderD7::DrawText(0, 70, mt_txtSize, mt_txtcolor, "GPU: " + std::to_string(C3D_GetDrawingTime()*6.0f) + "/" + std::to_string(C3D_GetDrawingTime()));
for (int z = 0; z < 320; z++)
{
C2D_DrawLine(z, 239 - mt_fpsgraph[z], mt_txtcolor, z + 1, 239 - mt_fpsgraph[z + 1], mt_txtcolor, 1, 1);
C2D_DrawLine(z, 239 - mt_fpsgraph[z], mt_txtcolor, z + 1, 239 - mt_fpsgraph[z + 1], mt_txtcolor, 1, 1);
}
}
@ -861,6 +861,12 @@ bool RenderD7::DrawNFRect(float p1x, float p1y, float w, float h, u32 color, flo
return true;
}
void RenderD7::FrameEnd()
{
if (metrikd)RenderD7::DrawMetrikOvl();
C3D_FrameEnd(0);
}
/*RenderD7::Console::Console()
{
this->x = 0;

View File

@ -203,7 +203,7 @@ namespace RenderD7
Result unloadFont(C2D_Font &fnt);
bool DrawCircle(float x, float y, float radius, u32 color);
bool DrawImage(C2D_Image img, float x, float y, float scaleX = 1.0f, float scaleY = 1.0f);
void FrameEnd();
class SpriteSheetAnimation : public RenderD7::Sprite
{