forked from len0rd/rockbox
SDL: Migrate to SDL2
Incorporates large portions of g#5879 g#5282 g#5285 g#5286 g#5287 Differences from the above patches: * Removed all MacOS-specific stuff * Removed support for SDL1 entirely * Properly implement mousewheel support * Bumped up minimum stack size for sigalstack threading * Check for overflow before enqueing scrollwheel events Tested on: * sdl application (Linux) * Simulator (x86_64, Linux) -- xduoox3/ipod4g/sansafuze * Simulator (i686, Windows) -- xduoox3 * Simulator (arm64, Linux) Change-Id: Ia3012dd1be123feb2888798a42d5b7cc149f382b
This commit is contained in:
parent
d13029ebdd
commit
7927423e34
49 changed files with 709 additions and 717 deletions
|
|
@ -340,7 +340,7 @@ unsigned int create_thread(void (*function)(void),
|
|||
return 0;
|
||||
}
|
||||
|
||||
SDL_Thread *t = SDL_CreateThread(runthread, thread);
|
||||
SDL_Thread *t = SDL_CreateThread(runthread, NULL, thread);
|
||||
if (t == NULL)
|
||||
{
|
||||
DEBUGF("Failed to create SDL thread\n");
|
||||
|
|
@ -447,7 +447,7 @@ void init_threads(void)
|
|||
thread->context.s = SDL_CreateSemaphore(0);
|
||||
thread->context.t = NULL; /* NULL for the implicit main thread */
|
||||
__running_self_entry() = thread;
|
||||
|
||||
|
||||
if (thread->context.s == NULL)
|
||||
{
|
||||
fprintf(stderr, "Failed to create main semaphore\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue