Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
b27fff6b
Commit
b27fff6b
authored
Jan 01, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the screen resolution in fullscreen
parent
a708b862
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
modules/video_output/sdl.c
modules/video_output/sdl.c
+12
-5
No files found.
modules/video_output/sdl.c
View file @
b27fff6b
...
...
@@ -59,6 +59,9 @@ struct vout_sys_t
int
i_width
;
int
i_height
;
unsigned
int
i_desktop_width
;
unsigned
int
i_desktop_height
;
/* For YUV output */
SDL_Overlay
*
p_overlay
;
/* An overlay we keep to grab the XVideo port */
...
...
@@ -205,10 +208,14 @@ static int Open ( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
vlc_mutex_unlock
(
lock
);
/* Translate keys into unicode */
SDL_EnableUNICODE
(
1
);
vlc_mutex_unlock
(
lock
);
/* Get the desktop resolution */
p_vout
->
p_sys
->
i_desktop_width
=
SDL_GetVideoInfo
()
->
current_w
;
p_vout
->
p_sys
->
i_desktop_height
=
SDL_GetVideoInfo
()
->
current_h
;
p_vout
->
p_sys
->
b_cursor
=
1
;
p_vout
->
p_sys
->
b_cursor_autohidden
=
0
;
...
...
@@ -721,9 +728,9 @@ static int OpenDisplay( vout_thread_t *p_vout )
uint32_t
i_chroma
=
0
;
/* Set main window's size */
p_vout
->
p_sys
->
i_width
=
p_vout
->
b_fullscreen
?
p_vout
->
output
.
i
_width
:
p_vout
->
p_sys
->
i_width
=
p_vout
->
b_fullscreen
?
p_vout
->
p_sys
->
i_desktop
_width
:
p_vout
->
i_window_width
;
p_vout
->
p_sys
->
i_height
=
p_vout
->
b_fullscreen
?
p_vout
->
output
.
i
_height
:
p_vout
->
p_sys
->
i_height
=
p_vout
->
b_fullscreen
?
p_vout
->
p_sys
->
i_desktop
_height
:
p_vout
->
i_window_height
;
/* Initialize flags and cursor */
...
...
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