Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
aa3efe4e
Commit
aa3efe4e
authored
May 26, 2004
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Play and Pause OSD Icons for hotkeys.
parent
a8037049
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
228 additions
and
92 deletions
+228
-92
include/osd.h
include/osd.h
+4
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+2
-2
src/video_output/video_widgets.c
src/video_output/video_widgets.c
+222
-90
No files found.
include/osd.h
View file @
aa3efe4e
...
...
@@ -31,6 +31,9 @@
#define OSD_ALIGN_TOP 0x4
#define OSD_ALIGN_BOTTOM 0x8
#define OSD_PLAY_ICON 1
#define OSD_PAUSE_ICON 2
/**
* Text style information.
* This struct is currently ignored
...
...
@@ -57,3 +60,4 @@ VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, char *, ... ) );
# define vout_OSDMessage __vout_OSDMessage
#endif
VLC_EXPORT
(
void
,
vout_OSDSlider
,
(
vlc_object_t
*
,
int
,
short
)
);
VLC_EXPORT
(
void
,
vout_OSDIcon
,
(
vlc_object_t
*
,
short
)
);
modules/control/hotkeys.c
View file @
aa3efe4e
...
...
@@ -332,7 +332,7 @@ static void Run( intf_thread_t *p_intf )
}
if
(
p_input
&&
val
.
i_int
!=
PAUSE_S
)
{
vout_OSD
Message
(
p_intf
,
_
(
"Pause"
)
);
vout_OSD
Icon
(
VLC_OBJECT
(
p_intf
),
OSD_PAUSE_ICON
);
val
.
i_int
=
PAUSE_S
;
var_Set
(
p_input
,
"state"
,
val
);
}
...
...
@@ -342,7 +342,7 @@ static void Run( intf_thread_t *p_intf )
FIND_ANYWHERE
);
if
(
p_playlist
)
{
vout_OSD
Message
(
p_intf
,
_
(
"Play"
)
);
vout_OSD
Icon
(
VLC_OBJECT
(
p_intf
),
OSD_PLAY_ICON
);
playlist_Play
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
...
...
src/video_output/video_widgets.c
View file @
aa3efe4e
This diff is collapsed.
Click to expand it.
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