Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
569fcd28
Commit
569fcd28
authored
Jul 14, 2011
by
Nathan Heisey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should compile now (fixed typos(?))
parent
63c52052
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SDL_syspower.c
src/power/beos/SDL_syspower.c
+5
-2
SDL_systhread.c
src/thread/beos/SDL_systhread.c
+1
-1
No files found.
src/power/beos/SDL_syspower.c
View file @
569fcd28
...
...
@@ -50,7 +50,8 @@ SDL_GetPowerInfo_BeOS(SDL_PowerState * state, int *seconds, int *percent)
uint8
battery_flags
;
uint8
battery_life
;
uint32
battery_time
;
int
rc
;
/* FIXME: This was undefined before; not sure what type it is */
if
(
fd
==
-
1
)
{
return
SDL_FALSE
;
/* maybe some other method will work? */
}
...
...
@@ -77,7 +78,9 @@ SDL_GetPowerInfo_BeOS(SDL_PowerState * state, int *seconds, int *percent)
if
(
battery_status
==
0xFF
)
{
battery_flags
=
0xFF
;
}
else
{
battery_flags
=
(
1
<<
status
.
battery_status
);
battery_flags
=
(
1
<<
battery_status
);
/* FIXME: Used to be
status.battery_status,
not sure why */
}
}
...
...
src/thread/beos/SDL_systhread.c
View file @
569fcd28
...
...
@@ -90,7 +90,7 @@ SDL_ThreadID(void)
}
int
SDL_SYS_SetThreadPriority
(
SDL_Thread
*
thread
,
SDL_Thread
Priority
priority
)
SDL_SYS_SetThreadPriority
(
SDL_ThreadPriority
priority
)
{
int32
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment