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
9fe737aa
Commit
9fe737aa
authored
Oct 18, 2000
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Modification du module gnome pour l'output sous Xfree4 (detection
16bits).
parent
3c9727d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
plugins/gnome/vout_gnome.c
plugins/gnome/vout_gnome.c
+9
-2
No files found.
plugins/gnome/vout_gnome.c
View file @
9fe737aa
...
@@ -411,13 +411,20 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
...
@@ -411,13 +411,20 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
* formats. */
* formats. */
p_xpixmap_format
=
XListPixmapFormats
(
p_vout
->
p_sys
->
p_display
,
&
i_count
);
p_xpixmap_format
=
XListPixmapFormats
(
p_vout
->
p_sys
->
p_display
,
&
i_count
);
p_vout
->
i_bytes_per_pixel
=
0
;
p_vout
->
i_bytes_per_pixel
=
0
;
/* Under XFree 4, XListPixmapFormats returns a list of available
* formats under each screen depth ; so we have to select the one
* for the current display. */
for
(
;
i_count
--
;
p_xpixmap_format
++
)
for
(
;
i_count
--
;
p_xpixmap_format
++
)
{
if
(
p_vout
->
i_screen_depth
==
p_xpixmap_format
->
depth
)
{
{
if
(
p_xpixmap_format
->
bits_per_pixel
/
8
>
p_vout
->
i_bytes_per_pixel
)
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
;
p_vout
->
i_bytes_per_pixel
=
p_xpixmap_format
->
bits_per_pixel
/
8
;
}
}
}
}
}
break
;
break
;
}
}
p_vout
->
p_sys
->
p_visual
=
p_xvisual
->
visual
;
p_vout
->
p_sys
->
p_visual
=
p_xvisual
->
visual
;
...
...
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