diff options
author | wm4 <wm4@nowhere> | 2020-01-08 20:23:12 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-01-09 19:13:42 +0100 |
commit | 7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95 (patch) | |
tree | 08eb3aa373e6b510817675cf6855344f42ecd615 /video/out/vo.h | |
parent | 57f9de7b53f7cb5a671d04e4204aaa3ad7f8875e (diff) | |
download | mpv-7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95.tar.bz2 mpv-7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95.tar.xz |
command, vo: add a mechanism for runtime DPI scale changes
Follow up to commit a58585d5e063. It turned out that the OSX backend
needs this.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index a05860cbc7..52e78dc502 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -43,14 +43,14 @@ enum { VO_EVENT_AMBIENT_LIGHTING_CHANGED = 1 << 4, // Special mechanism for making resizing with Cocoa react faster VO_EVENT_LIVE_RESIZING = 1 << 5, - // Legacy. Use m_config_cache_write_opt() instead to update the fullscreen - // option. + // For VOCTRL_GET_HIDPI_SCALE changes. + VO_EVENT_DPI = 1 << 6, // Special thing for encode mode (vo_driver.initially_blocked). // Part of VO_EVENTS_USER to make vo_is_ready_for_frame() work properly. VO_EVENT_INITIAL_UNBLOCK = 1 << 7, // Set of events the player core may be interested in. - VO_EVENTS_USER = VO_EVENT_RESIZE | VO_EVENT_WIN_STATE | + VO_EVENTS_USER = VO_EVENT_RESIZE | VO_EVENT_WIN_STATE | VO_EVENT_DPI | VO_EVENT_INITIAL_UNBLOCK, }; |