From 330dfa430e132624d64bbac2edd58b8714265c85 Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 8 Oct 2019 17:30:16 +1100 Subject: [PATCH] launcher: improve appearance of GPU Info slightly --- source-code/source/plugins/Launcher/ui.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source-code/source/plugins/Launcher/ui.h b/source-code/source/plugins/Launcher/ui.h index a42dec8..fd610d1 100644 --- a/source-code/source/plugins/Launcher/ui.h +++ b/source-code/source/plugins/Launcher/ui.h @@ -151,6 +151,7 @@ namespace Launcher { int window = glutCreateWindow("glut"); // a context must be created to use glGetString String^ vendor = gcnew String((char*)glGetString(GL_VENDOR)); + vendor = vendor->Replace(" Corporation", ""); // this is useless.. remove it to help ensure the GPU type line fits String^ renderer = gcnew String((char*)glGetString(GL_RENDERER)); String^ version = gcnew String((char*)glGetString(GL_VERSION)); @@ -376,9 +377,9 @@ namespace Launcher { // labelGPU // this->labelGPU->AutoSize = true; - this->labelGPU->BackColor = System::Drawing::Color::FromArgb(static_cast(static_cast(128)), static_cast(static_cast(64)), static_cast(static_cast(64)), - static_cast(static_cast(64)));; - this->labelGPU->Location = System::Drawing::Point(12, 317); + this->labelGPU->BackColor = System::Drawing::Color::FromArgb(static_cast(static_cast(80)), static_cast(static_cast(24)), + static_cast(static_cast(24)), static_cast(static_cast(24)));; + this->labelGPU->Location = System::Drawing::Point(12, 314); this->labelGPU->MinimumSize = System::Drawing::Size(410, 20); this->labelGPU->Name = L"labelGPU"; this->labelGPU->Size = System::Drawing::Size(410, 20);