From a8ff94e30b289ec3b0d17303ef728c32a3339e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 19 Dec 2018 14:41:07 +0100 Subject: [PATCH] Display some important information on GPU test screen to make screenshots more useful --- UI/GPUDriverTestScreen.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/UI/GPUDriverTestScreen.cpp b/UI/GPUDriverTestScreen.cpp index 820d0ce8f5..d468b5cdb4 100644 --- a/UI/GPUDriverTestScreen.cpp +++ b/UI/GPUDriverTestScreen.cpp @@ -186,11 +186,20 @@ void GPUDriverTestScreen::DiscardTest() { // If everything is OK, both the background and the text should be OK. + dc.Begin(); + std::string apiName = screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME); + std::string vendor = screenManager()->getDrawContext()->GetInfoString(InfoField::VENDORSTRING); + std::string driver = screenManager()->getDrawContext()->GetInfoString(InfoField::DRIVER); + dc.DrawText(apiName.c_str(), bounds.centerX(), 20, 0xFFFFFFFF, ALIGN_CENTER); + dc.DrawText(vendor.c_str(), bounds.centerX(), 60, 0xFFFFFFFF, ALIGN_CENTER); + dc.DrawText(driver.c_str(), bounds.centerX(), 100, 0xFFFFFFFF, ALIGN_CENTER); + dc.Flush(); + float testW = 200.f; float padding = 20.0f; UI::Style style = dc.theme->itemStyle; - float y = 100; + float y = 150; float x = (dc.GetBounds().w - (float)numTests * testW - (float)(numTests - 1) * padding) / 2.0f; for (int i = 0; i < numTests; i++) { dc.Begin();