mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
WIN_SetWindowProgressValue(): Fix value clamp
This commit is contained in:

committed by
Sam Lantinga

parent
0177838353
commit
a3be7a137a
@@ -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);
|
||||
|
Reference in New Issue
Block a user