Ver Fonte

Fix wrong value for thread priorities following official PSP Docs

Francisco Javier Trujillo Mata há 3 anos atrás
pai
commit
8ed0cc4300
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      src/thread/psp/SDL_systhread.c

+ 4 - 4
src/thread/psp/SDL_systhread.c

@@ -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);