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
98f2e298
Commit
98f2e298
authored
Oct 30, 2011
by
Andreas Schiffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sdl-haiku buildbot compiler warnings
parent
c5e05365
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
5 deletions
+12
-5
SDL_BApp.h
src/main/beos/SDL_BApp.h
+3
-0
SDL_bmp.c
src/video/SDL_bmp.c
+1
-1
SDL_BWin.h
src/video/bwindow/SDL_BWin.h
+0
-2
SDL_bclipboard.cc
src/video/bwindow/SDL_bclipboard.cc
+1
-0
SDL_bframebuffer.cc
src/video/bwindow/SDL_bframebuffer.cc
+0
-1
SDL_bkeyboard.cc
src/video/bwindow/SDL_bkeyboard.cc
+1
-1
SDL_bmodes.cc
src/video/bwindow/SDL_bmodes.cc
+5
-0
SDL_bopengl.cc
src/video/bwindow/SDL_bopengl.cc
+1
-0
No files found.
src/main/beos/SDL_BApp.h
View file @
98f2e298
...
...
@@ -175,6 +175,9 @@ public:
_PushBackWindow
(
win
);
return
i
;
}
/* TODO: error handling */
return
0
;
}
/* FIXME: Bad coding practice, but I can't include SDL_BWin.h here. Is
...
...
src/video/SDL_bmp.c
View file @
98f2e298
...
...
@@ -49,7 +49,7 @@ SDL_Surface *
SDL_LoadBMP_RW
(
SDL_RWops
*
src
,
int
freesrc
)
{
SDL_bool
was_error
;
long
fp_offset
;
long
fp_offset
=
0
;
int
bmpPitch
;
int
i
,
pad
;
SDL_Surface
*
surface
;
...
...
src/video/bwindow/SDL_BWin.h
View file @
98f2e298
...
...
@@ -300,7 +300,6 @@ class SDL_BWin:public BDirectWindow
switch
(
msg
->
what
)
{
case
B_MOUSE_MOVED
:
where
;
int32
transit
;
if
(
msg
->
FindPoint
(
"where"
,
&
where
)
==
B_OK
&&
msg
->
FindInt32
(
"be:transit"
,
&
transit
)
==
B_OK
)
{
...
...
@@ -440,7 +439,6 @@ private:
_MouseFocusEvent
(
false
);
}
}
else
{
static
int
x
=
0
,
y
=
0
;
/* Change mouse focus */
if
(
!
_mouse_focused
)
{
_MouseFocusEvent
(
true
);
...
...
src/video/bwindow/SDL_bclipboard.cc
View file @
98f2e298
...
...
@@ -47,6 +47,7 @@ int BE_SetClipboardText(_THIS, const char *text) {
}
be_clipboard
->
Unlock
();
}
return
0
;
}
char
*
BE_GetClipboardText
(
_THIS
)
{
...
...
src/video/bwindow/SDL_bframebuffer.cc
View file @
98f2e298
...
...
@@ -115,7 +115,6 @@ int BE_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
int32
BE_DrawThread
(
void
*
data
)
{
SDL_BWin
*
bwin
=
(
SDL_BWin
*
)
data
;
SDL_Window
*
window
=
_GetBeApp
()
->
GetSDLWindow
(
bwin
->
GetID
());
BScreen
bscreen
;
if
(
!
bscreen
.
IsValid
())
{
...
...
src/video/bwindow/SDL_bkeyboard.cc
View file @
98f2e298
...
...
@@ -158,7 +158,7 @@ void BE_InitOSKeymap() {
}
SDL_Scancode
BE_GetScancodeFromBeKey
(
int32
bkey
)
{
if
(
bkey
>
0
&&
bkey
<
SDL_TABLESIZE
(
keymap
))
{
if
(
bkey
>
0
&&
bkey
<
(
int32
)
SDL_TABLESIZE
(
keymap
))
{
return
keymap
[
bkey
];
}
else
{
return
SDL_SCANCODE_UNKNOWN
;
...
...
src/video/bwindow/SDL_bmodes.cc
View file @
98f2e298
...
...
@@ -184,6 +184,10 @@ int32 BE_BPPToSDLPxFormat(int32 bpp) {
return
SDL_PIXELFORMAT_INDEX4LSB
;
break
;
}
/* May never get here, but safer and needed to shut up compiler */
SDL_SetError
(
"Invalid bpp value"
);
return
0
;
}
static
void
_BDisplayModeToSdlDisplayMode
(
display_mode
*
bmode
,
...
...
@@ -236,6 +240,7 @@ int BE_InitModes(_THIS) {
/* TODO: When Haiku supports multiple display screens, call
_AddDisplayScreen() for each of them. */
_AddDisplay
(
&
screen
);
return
0
;
}
int
BE_QuitModes
(
_THIS
)
{
...
...
src/video/bwindow/SDL_bopengl.cc
View file @
98f2e298
...
...
@@ -59,6 +59,7 @@ int BE_GL_LoadLibrary(_THIS, const char *path)
SDL_arraysize
(
_this
->
gl_config
.
driver_path
));
}
}
return
0
;
}
void
*
BE_GL_GetProcAddress
(
_THIS
,
const
char
*
proc
)
...
...
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