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
1f4c177f
Commit
1f4c177f
authored
Jan 28, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/visualization/xosd/xosd.c: fixed compilation with version 2 of
libxosd.
parent
58296e63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
configure.ac.in
configure.ac.in
+7
-3
modules/visualization/xosd/xosd.c
modules/visualization/xosd/xosd.c
+9
-2
No files found.
configure.ac.in
View file @
1f4c177f
...
...
@@ -2497,9 +2497,13 @@ AC_ARG_ENABLE(xosd,
if test "x${enable_xosd}" = "xyes"
then
AC_CHECK_HEADER(xosd.h, have_xosd="true", have_xosd="false")
AC_TRY_COMPILE([#include <xosd.h>],
[void foo() { xosd_init("foo","bar",12,XOSD_top,2,12,42); }],,
AC_DEFINE(HAVE_OLD_XOSD_H, 1, Define if <xosd.h> is pre-1.0.0))
AC_CHECK_LIB(xosd,xosd_set_offset,
AC_DEFINE(HAVE_XOSD_VERSION_1, 1, Define if <xosd.h> is 1.0.x),
AC_CHECK_LIB(xosd,xosd_set_horizontal_offset,
AC_DEFINE(HAVE_XOSD_VERSION_2, 1, Define if <xosd.h> is 2.0.x),
AC_TRY_COMPILE([#include <xosd.h>],
[void foo() { xosd_init("foo","bar",12,XOSD_top,2,12,42); }],,
AC_DEFINE(HAVE_XOSD_VERSION_0, 1, Define if <xosd.h> is pre-1.0.0))))
if test "x${have_xosd}" = "xtrue"
then
PLUGINS="${PLUGINS} xosd"
...
...
modules/visualization/xosd/xosd.c
View file @
1f4c177f
...
...
@@ -2,7 +2,7 @@
* xosd.c : X On Screen Display interface
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: xosd.c,v 1.
5 2003/01/22 19:37:50 lool
Exp $
* $Id: xosd.c,v 1.
6 2003/01/28 16:52:36 sam
Exp $
*
* Authors: Loc Minier <lool@videolan.org>
*
...
...
@@ -108,7 +108,7 @@ static int Open( vlc_object_t *p_this )
/* Initialize library */
p_intf
->
p_sys
->
p_osd
=
#ifdef HAVE_
OLD_XOSD_H
#ifdef HAVE_
XOSD_VERSION_0
xosd_init
(
config_GetPsz
(
p_intf
,
"xosd-font"
),
"LawnGreen"
,
3
,
XOSD_top
,
0
,
1
);
#else
...
...
@@ -190,8 +190,15 @@ static void Run( intf_thread_t *p_intf )
/* Set user preferences */
xosd_set_font
(
p_intf
->
p_sys
->
p_osd
,
config_GetPsz
(
p_intf
,
"xosd-font"
)
);
#ifdef HAVE_XOSD_VERSION_2
xosd_set_horizontal_offset
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
xosd_set_vertical_offset
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
#else
xosd_set_offset
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
#endif
xosd_set_shadow_offset
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-shadow-offset"
));
xosd_set_pos
(
p_intf
->
p_sys
->
p_osd
,
...
...
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