Update renderd7.cpp

This commit is contained in:
tobid7 2021-11-28 15:03:00 +01:00 committed by GitHub
parent 4adf59193c
commit 9d4f94dba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,9 +39,10 @@ u32 mt_color;
u32 mt_txtcolor;
int mt_screen;
float mt_txtSize;
bool metrikd = false;
//-------------------------------------------
bool currentScreen = false;
bool metrikd = false;
C3D_RenderTarget* Top;
C3D_RenderTarget* TopRight;
C3D_RenderTarget* Bottom;
@ -564,7 +565,7 @@ Result RenderD7::Init::Main(std::string app_name)
mt_txtcolor = RenderD7::Color::Hex(cfgstruct["metrik-settings"]["txtColor"], (u8)RenderD7::Convert::StringtoFloat(cfgstruct["metrik-settings"]["txtColorA"]));
mt_color = RenderD7::Color::Hex(cfgstruct["metrik-settings"]["Color"], (u8)RenderD7::Convert::StringtoFloat(cfgstruct["metrik-settings"]["ColorA"]));
mt_txtSize = RenderD7::Convert::StringtoFloat(cfgstruct["metrik-settings"]["txtSize"]);
mt_screen = RenderD7::Convert::StringtoInt(cfgstruct["metrik-settings"]["Screen"])
mt_screen = RenderD7::Convert::StringtoInt(cfgstruct["metrik-settings"]["Screen"]);
osSetSpeedupEnable(true);
/*if(metrikd)
@ -824,7 +825,7 @@ void RenderD7::DrawMetrikOvl()
default:
RenderD7::OnScreen(Bottom);
}
RenderD7::DrawText(0, 0, mt_txtSize, mt_txtcolor, "HI");
RenderD7::DrawText(0, 0, mt_txtSize, mt_txtcolor, "FPS: " + std::to_string(d11framerate));
}
/*RenderD7::Console::Console()