[idd] helper: update notification icon to reflect GPU availability

This commit is contained in:
Quantum
2026-06-06 01:50:10 -04:00
committed by Geoffrey McRae
parent 89ddab9d57
commit 66d8a9691e
2 changed files with 7 additions and 0 deletions

View File

@@ -192,6 +192,11 @@ void CNotifyWindow::handleGPUNotification(bool hasGPU)
L"Looking Glass (IDD) with GPU acceleration" :
L"Looking Glass (IDD) with software rendering");
if (hasGPU)
m_iconData.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(ID_GPU_ICON));
else
m_iconData.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(ID_NO_GPU_ICON));
if (!Shell_NotifyIcon(NIM_MODIFY, &m_iconData))
{
DEBUG_ERROR_HR(GetLastError(), "Shell_NotifyIcon(NIM_ADD)");

View File

@@ -25,6 +25,8 @@
#include "Resources.h"
ID_MAIN_ICON ICON "../../resources/icon.ico"
ID_GPU_ICON ICON "../../resources/icon-gpu.ico"
ID_NO_GPU_ICON ICON "../../resources/icon-nogpu.ico"
#define STRINGIFY2(s) L#s
#define STRINGIFY(s) STRINGIFY2(s)