mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-06-08 07:44:32 +00:00
[idd] helper: update notification icon to reflect GPU availability
This commit is contained in:
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user