mirror of https://github.com/encounter/SDL.git
Fix wrong value for thread priorities following official PSP Docs
This commit is contained in:
parent
44c84c0d8e
commit
8ed0cc4300
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue