Fix wrong value for thread priorities following official PSP Docs

This commit is contained in:
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; int value;
if (priority == SDL_THREAD_PRIORITY_LOW) { if (priority == SDL_THREAD_PRIORITY_LOW) {
value = 19; value = 111;
} else if (priority == SDL_THREAD_PRIORITY_HIGH) { } else if (priority == SDL_THREAD_PRIORITY_HIGH) {
value = -10; value = 32;
} else if (priority == SDL_THREAD_PRIORITY_TIME_CRITICAL) { } else if (priority == SDL_THREAD_PRIORITY_TIME_CRITICAL) {
value = -20; value = 16;
} else { } else {
value = 0; value = 50;
} }
return sceKernelChangeThreadPriority(sceKernelGetThreadId(),value); return sceKernelChangeThreadPriority(sceKernelGetThreadId(),value);