Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
28a0023b
Commit
28a0023b
authored
Feb 09, 2010
by
Aymeric Moizard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try HW before SW
parent
ab1690f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/videoout.c
src/videoout.c
+7
-1
No files found.
src/videoout.c
View file @
28a0023b
...
...
@@ -109,7 +109,13 @@ static void sdl_display_uninit(MSDisplay *obj);
static
int
sdl_create_window
(
SdlDisplay
*
wd
,
int
w
,
int
h
){
static
bool_t
once
=
TRUE
;
wd
->
sdl_screen
=
SDL_SetVideoMode
(
w
,
h
,
0
,
SDL_SWSURFACE
|
SDL_RESIZABLE
);
wd
->
sdl_screen
=
SDL_SetVideoMode
(
w
,
h
,
0
,
SDL_HWSURFACE
|
SDL_RESIZABLE
);
if
(
wd
->
sdl_screen
==
NULL
)
{
ms_warning
(
"no hardware for video mode: %s
\n
"
,
SDL_GetError
());
}
if
(
wd
->
sdl_screen
==
NULL
)
wd
->
sdl_screen
=
SDL_SetVideoMode
(
w
,
h
,
0
,
SDL_SWSURFACE
|
SDL_RESIZABLE
);
if
(
wd
->
sdl_screen
==
NULL
)
{
ms_warning
(
"Couldn't set video mode: %s
\n
"
,
SDL_GetError
());
...
...
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