Fix wrong value for thread priorities following official PSP Docs

main
Francisco Javier Trujillo Mata 2021-12-15 22:30:04 +01:00 committed by Sam Lantinga
parent 44c84c0d8e
commit 8ed0cc4300
1 changed files with 4 additions and 4 deletions

View File

@ -95,13 +95,13 @@ int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
int value;
if (priority == SDL_THREAD_PRIORITY_LOW) {
value = 19;
value = 111;
} else if (priority == SDL_THREAD_PRIORITY_HIGH) {
value = -10;
value = 32;
} else if (priority == SDL_THREAD_PRIORITY_TIME_CRITICAL) {
value = -20;
value = 16;
} else {
value = 0;
value = 50;
}
return sceKernelChangeThreadPriority(sceKernelGetThreadId(),value);