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
b3daf517
Commit
b3daf517
authored
Oct 17, 2000
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.Fix du probl�me de detection de la profondeur en 16 bits sous XFree 4
J'esp�re que �a marche encore avec XFree 3.3
parent
3b8ab8a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
plugins/x11/vout_x11.c
plugins/x11/vout_x11.c
+9
-4
No files found.
plugins/x11/vout_x11.c
View file @
b3daf517
...
...
@@ -412,13 +412,18 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
* formats. */
p_xpixmap_format
=
XListPixmapFormats
(
p_vout
->
p_sys
->
p_display
,
&
i_count
);
/* FIXME: under XFree4.0, we can get some strange values. Check this */
/* Under XFree4.0, the list contains pixmap formats available through
* all video depths ; so we have to check against current depth. */
p_vout
->
i_bytes_per_pixel
=
0
;
for
(
;
i_count
--
;
p_xpixmap_format
++
)
for
(
;
i_count
--
;
p_xpixmap_format
++
)
{
if
(
p_xpixmap_format
->
bits_per_pixel
/
8
>
p_vout
->
i_bytes_per_pixel
)
if
(
p_xpixmap_format
->
depth
==
p_vout
->
i_screen_depth
)
{
p_vout
->
i_bytes_per_pixel
=
p_xpixmap_format
->
bits_per_pixel
/
8
;
if
(
p_xpixmap_format
->
bits_per_pixel
/
8
>
p_vout
->
i_bytes_per_pixel
)
{
p_vout
->
i_bytes_per_pixel
=
p_xpixmap_format
->
bits_per_pixel
/
8
;
}
}
}
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