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

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2026-06-07 07:04:00 +10:00
1 parent 89ddab9d57
commit 66d8a9691e
2 files changed
+7

No files matched your search

+5
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)");