diff --git a/renderd7.cpp b/renderd7.cpp index 8db757d..6eb79ab 100644 --- a/renderd7.cpp +++ b/renderd7.cpp @@ -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; diff --git a/renderd7.hpp b/renderd7.hpp index cd39c6a..d784e37 100644 --- a/renderd7.hpp +++ b/renderd7.hpp @@ -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 {