dev163 - GUI: add watermark to identify unstable

This commit is contained in:
tildearrow 2023-07-09 20:34:44 -05:00
parent ecb9f6fbeb
commit 5a9de0f3e6
2 changed files with 15 additions and 2 deletions

View file

@ -5759,6 +5759,17 @@ bool FurnaceGUI::loop() {
introPos=12.0;
}
#ifdef DIV_UNSTABLE
{
ImDrawList* dl=ImGui::GetForegroundDrawList();
ImVec2 markPos=ImVec2(canvasW-ImGui::CalcTextSize(DIV_VERSION).x-6.0*dpiScale,6.0*dpiScale);
ImVec4 markColor=uiColors[GUI_COLOR_TEXT];
markColor.w=0.67f;
dl->AddText(markPos,ImGui::ColorConvertFloat4ToU32(markColor),DIV_VERSION);
}
#endif
layoutTimeEnd=SDL_GetPerformanceCounter();
// backup trigger