Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
75ff8a59
Commit
75ff8a59
authored
May 08, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/X11: fix crop
parent
43dd12e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+13
-6
No files found.
modules/video_output/xcb/x11.c
View file @
75ff8a59
...
...
@@ -378,17 +378,24 @@ static void Display (vout_thread_t *vout, picture_t *pic)
if
(
segment
!=
0
)
xcb_shm_put_image
(
p_sys
->
conn
,
p_sys
->
window
,
p_sys
->
gc
,
/* real width */
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
/* real height */
pic
->
p
->
i_lines
,
/* x */
0
,
/* y */
0
,
/* width */
pic
->
p
->
i_visible_pitch
/
pic
->
p
->
i_pixel_pitch
,
/* height */
pic
->
p
->
i_visible_lines
,
/* x */
0
,
/* y */
0
,
p_sys
->
depth
,
XCB_IMAGE_FORMAT_Z_PIXMAP
,
/* real height */
pic
->
p
->
i_lines
,
/* x */
vout
->
fmt_out
.
i_x_offset
,
/* y */
vout
->
fmt_out
.
i_y_offset
,
/* width */
vout
->
fmt_out
.
i_visible_width
,
/* height */
vout
->
fmt_out
.
i_visible_height
,
0
,
0
,
p_sys
->
depth
,
XCB_IMAGE_FORMAT_Z_PIXMAP
,
0
,
segment
,
0
);
else
{
const
size_t
offset
=
vout
->
fmt_out
.
i_y_offset
*
pic
->
p
->
i_pitch
;
const
unsigned
lines
=
pic
->
p
->
i_lines
-
vout
->
fmt_out
.
i_y_offset
;
xcb_put_image
(
p_sys
->
conn
,
XCB_IMAGE_FORMAT_Z_PIXMAP
,
p_sys
->
window
,
p_sys
->
gc
,
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_lines
,
0
,
0
,
0
,
p_sys
->
depth
,
pic
->
p
->
i_pitch
*
pic
->
p
->
i_lines
,
pic
->
p
->
p_pixels
);
lines
,
-
vout
->
fmt_out
.
i_x_offset
,
0
,
0
,
p_sys
->
depth
,
pic
->
p
->
i_pitch
*
lines
,
pic
->
p
->
p_pixels
+
offset
);
}
xcb_flush
(
p_sys
->
conn
);
}
...
...
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