summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-12-17 22:49:58 +0200
committerJan Ekström <jeebjp@gmail.com>2019-12-18 00:02:49 +0200
commitdf7d5a1689e6f39c00e6ff86829921d1fa6db095 (patch)
treef0bd5146ca2f695d74ecfa88f0fe65fa2210ed32
parent6554db47ab8860836cada64fb8b38315bd12ecd4 (diff)
downloadmpv-df7d5a1689e6f39c00e6ff86829921d1fa6db095.tar.bz2
mpv-df7d5a1689e6f39c00e6ff86829921d1fa6db095.tar.xz
video/w32_common: follow updates to the border option instead of VOCTRL_BORDER
-rw-r--r--video/out/w32_common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 83fbdaa512..a72585dab3 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -1580,15 +1580,14 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg)
reinit_window_state(w32);
} else if (changed_option == &vo_opts->ontop) {
update_window_state(w32);
+ } else if (changed_option == &vo_opts->border) {
+ update_window_style(w32);
+ update_window_state(w32);
}
}
return VO_TRUE;
}
- case VOCTRL_BORDER:
- update_window_style(w32);
- update_window_state(w32);
- return VO_TRUE;
case VOCTRL_GET_UNFS_WINDOW_SIZE: {
int *s = arg;