Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
707d9fb6
Commit
707d9fb6
authored
6 years ago
by
Nagy Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Enable SDL timers
parent
7ec6d099
No related branches found
Branches containing commit
No related tags found
1 merge request
!142
Enable SDL timers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/sdl/02_timers.patch
+57
-0
57 additions, 0 deletions
recipes/sdl/02_timers.patch
recipes/sdl/recipe.sh
+2
-2
2 additions, 2 deletions
recipes/sdl/recipe.sh
with
59 additions
and
2 deletions
recipes/sdl/02_timers.patch
0 → 100644
+
57
−
0
View file @
707d9fb6
diff -rupN source/src/timer/unix/SDL_systimer.c source-redox/src/timer/unix/SDL_systimer.c
--- source/src/timer/unix/SDL_systimer.c 2012-01-19 07:30:06.000000000 +0100
+++ source-redox/src/timer/unix/SDL_systimer.c 2018-04-22 17:42:17.455342646 +0200
@@ -150,14 +150,14 @@
static void HandleAlarm(int sig)
int SDL_SYS_TimerInit(void)
{
- struct sigaction action;
+ //struct sigaction action;
- /* Set the alarm handler (Linux specific) */
- SDL_memset(&action, 0, sizeof(action));
- action.sa_handler = HandleAlarm;
- action.sa_flags = SA_RESTART;
- sigemptyset(&action.sa_mask);
- sigaction(SIGALRM, &action, NULL);
+ ///* Set the alarm handler (Linux specific) */
+ //SDL_memset(&action, 0, sizeof(action));
+ //action.sa_handler = HandleAlarm;
+ //action.sa_flags = SA_RESTART;
+ //sigemptyset(&action.sa_mask);
+ //sigaction(SIGALRM, &action, NULL);
return(0);
}
@@ -168,22 +168,22 @@
void SDL_SYS_TimerQuit(void)
int SDL_SYS_StartTimer(void)
{
- struct itimerval timer;
+ //struct itimerval timer;
- timer.it_value.tv_sec = (SDL_alarm_interval/1000);
- timer.it_value.tv_usec = (SDL_alarm_interval%1000)*1000;
- timer.it_interval.tv_sec = (SDL_alarm_interval/1000);
- timer.it_interval.tv_usec = (SDL_alarm_interval%1000)*1000;
- setitimer(ITIMER_REAL, &timer, NULL);
+ //timer.it_value.tv_sec = (SDL_alarm_interval/1000);
+ //timer.it_value.tv_usec = (SDL_alarm_interval%1000)*1000;
+ //timer.it_interval.tv_sec = (SDL_alarm_interval/1000);
+ //timer.it_interval.tv_usec = (SDL_alarm_interval%1000)*1000;
+ //setitimer(ITIMER_REAL, &timer, NULL);
return(0);
}
void SDL_SYS_StopTimer(void)
{
- struct itimerval timer;
+ //struct itimerval timer;
- SDL_memset(&timer, 0, (sizeof timer));
- setitimer(ITIMER_REAL, &timer, NULL);
+ //SDL_memset(&timer, 0, (sizeof timer));
+ //setitimer(ITIMER_REAL, &timer, NULL);
}
#else /* USE_ITIMER */
This diff is collapsed.
Click to expand it.
recipes/sdl/recipe.sh
+
2
−
2
View file @
707d9fb6
...
...
@@ -13,8 +13,8 @@ function recipe_update {
function
recipe_build
{
./autogen.sh
./configure
--prefix
=
/
--host
=
${
HOST
}
--disable-shared
--disable-pulseaudio
--disable-video-x11
--disable-cdrom
--disable-loadso
--disable-threads
--disable-timers
--enable-audio
--enable-dummyaudio
--enable-video-orbital
make
./configure
--prefix
=
/
--host
=
${
HOST
}
--disable-shared
--disable-pulseaudio
--disable-video-x11
--disable-cdrom
--disable-loadso
--disable-threads
--enable-audio
--enable-dummyaudio
--enable-video-orbital
make
skip
=
1
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment