WIN_SetWindowProgressValue(): Fix value clamp

This commit is contained in:
Petar Popovic authored and Sam Lantinga committed 2025-03-23 07:51:49 -07:00
1 parent 0177838353
commit a3be7a137a
1 file changed
+1 -1
+1 -1
View File
@@ -2298,7 +2298,7 @@ bool WIN_SetWindowProgressValue(SDL_VideoDevice *_this, SDL_Window *window, floa
return false;
};
SDL_clamp(value, 0.0f, 1.f);
value = SDL_clamp(value, 0.0f, 1.f);
HRESULT ret = taskbar_list->lpVtbl->SetProgressValue(taskbar_list, window->internal->hwnd, (ULONGLONG)(value * 10000.f), 10000);
if (FAILED(ret)) {
return WIN_SetErrorFromHRESULT("ITaskbarList3::SetProgressValue()", ret);