mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Win32: glfwSetWindowTaskbarProgress now emits GLFW_FEATURE_UNAVAILABLE on Windows Vista and older
This commit is contained in:
parent
f590075121
commit
74dac5cfb4
@ -1601,6 +1601,12 @@ void _glfwSetWindowTaskbarProgressWin32(_GLFWwindow* window, const int progressS
|
|||||||
HRESULT res = S_OK;
|
HRESULT res = S_OK;
|
||||||
int32_t winProgressState = 0;
|
int32_t winProgressState = 0;
|
||||||
|
|
||||||
|
if(!IsWindows7OrGreater())
|
||||||
|
{
|
||||||
|
_glfwInputErrorWin32(GLFW_FEATURE_UNAVAILABLE, "Win32: Taskbar progress is only supported on Windows 7 or newer");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!window->win32.TaskbarList)
|
if(!window->win32.TaskbarList)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user