summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec_cuda.c
diff options
context:
space:
mode:
authorpavelxdd <pavel.otchertsov@gmail.com>2017-12-22 19:19:28 +0300
committerJan Ekström <jeebjp@gmail.com>2018-11-18 00:56:34 +0200
commitedbe25f38a2d5867dec066288cb61adf6191f327 (patch)
treebe873b69b8b9f4695f2986e6fe7cd630770b9723 /video/out/opengl/hwdec_cuda.c
parentf1ba1ef77f9536910caac8fff2c3793491d23459 (diff)
downloadmpv-edbe25f38a2d5867dec066288cb61adf6191f327.tar.bz2
mpv-edbe25f38a2d5867dec066288cb61adf6191f327.tar.xz
w32_common: use the screen working area when resizing the window
This makes the default fit on screen, autofit and window-scale changing behavior to use the screen working area, instead of the whole screen area. As a result mpv window doesn't cover the taskbar now when opening videos with size larger than the screen size. The actual behavior now is the same as expected behavior for usecases 1-4 from #4363. This commit also removes the screenrc from w32 struct. The screen rect can now be retrieved via `get_screen_area` function, which was renamed from `update_screen_rect`. On a multi-monitor system, if the user moved the window between monitors, this function will return the current screen area under the window, and not the screen area from monitor specified by `--screen` option. The `--screen` option sets the initial monitor the mpv window is displayed on.
Diffstat (limited to 'video/out/opengl/hwdec_cuda.c')
0 files changed, 0 insertions, 0 deletions