summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-08 02:07:20 +0200
committerwm4 <wm4@nowhere>2013-09-08 03:03:58 +0200
commit0509532d702e53ec77e47c38a3c92575a8843dcb (patch)
tree0e2119dd0d1a9ed2f598099ca8dff389ca9e10c9 /mpvcore/mplayer.c
parentf1b5198b35285111c3084c8d53d69194a5fc08e0 (diff)
downloadmpv-0509532d702e53ec77e47c38a3c92575a8843dcb.tar.bz2
mpv-0509532d702e53ec77e47c38a3c92575a8843dcb.tar.xz
options: cosmetics: move cursor_autohide_delay definition
No functional changes.
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r--mpvcore/mplayer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index ad1bae476b..3a2b65b31c 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -2402,7 +2402,7 @@ int reinit_video_chain(struct MPContext *mpctx)
"the selected video_out (-vo) device.\n");
goto err_out;
}
- if (opts->vo.cursor_autohide_delay != -1) {
+ if (opts->cursor_autohide_delay != -1) {
vo_control(mpctx->video_out, VOCTRL_SET_CURSOR_VISIBILITY,
&(bool){false});
}
@@ -3457,12 +3457,12 @@ static void run_playloop(struct MPContext *mpctx)
unsigned mouse_event_ts = mp_input_get_mouse_event_counter(mpctx->input);
if (mpctx->mouse_event_ts != mouse_event_ts) {
mpctx->mouse_event_ts = mouse_event_ts;
- if (opts->vo.cursor_autohide_delay > -1) {
+ if (opts->cursor_autohide_delay > -1) {
vo_control(vo, VOCTRL_SET_CURSOR_VISIBILITY, &(bool){true});
- if (opts->vo.cursor_autohide_delay >= 0) {
+ if (opts->cursor_autohide_delay >= 0) {
mpctx->mouse_waiting_hide = 1;
mpctx->mouse_timer =
- mp_time_sec() + opts->vo.cursor_autohide_delay / 1000.0;
+ mp_time_sec() + opts->cursor_autohide_delay / 1000.0;
}
}
}