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
adb10cda
Commit
adb10cda
authored
Mar 14, 2014
by
Matthias Keiser
Committed by
Rémi Denis-Courmont
Mar 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sdl vout module handle rotated movies.
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
af147ca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/video_output/sdl.c
modules/video_output/sdl.c
+6
-4
No files found.
modules/video_output/sdl.c
View file @
adb10cda
...
...
@@ -165,6 +165,8 @@ static int Open(vlc_object_t *object)
/* */
video_format_t
fmt
=
vd
->
fmt
;
video_format_ApplyRotation
(
&
fmt
,
&
vd
->
fmt
);
fmt
=
vd
->
fmt
;
/* */
vout_display_info_t
info
=
vd
->
info
;
...
...
@@ -638,11 +640,11 @@ static void Manage(vout_display_t *vd)
if
(
sys
->
place
.
width
<=
0
||
sys
->
place
.
height
<=
0
)
break
;
const
int
x
=
(
int64_t
)(
event
.
motion
.
x
-
sys
->
place
.
x
)
*
vd
->
source
.
i_width
/
sys
->
place
.
width
;
const
int
y
=
(
int64_t
)(
event
.
motion
.
y
-
sys
->
place
.
y
)
*
vd
->
source
.
i_height
/
sys
->
place
.
height
;
SDL_ShowCursor
(
1
);
vout_display_SendEventMouseMoved
(
vd
,
x
,
y
);
vout_display_SendMouseMovedDisplayCoordinates
(
vd
,
ORIENT_NORMAL
,
event
.
motion
.
x
,
event
.
motion
.
y
,
&
sys
->
place
);
break
;
}
...
...
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