summaryrefslogtreecommitdiffstats
path: root/old-makefile
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-06 20:22:32 +0200
committerwm4 <wm4@nowhere>2014-05-06 20:22:32 +0200
commitfeb1f8f18fc2bf1de81ea43d7b57e318c1bf4e69 (patch)
tree65498de7e44716f35d79bedec935e5eb79fd69c5 /old-makefile
parent587f42b56c7cba07fadbb3b73032cdd186f76f5f (diff)
downloadmpv-feb1f8f18fc2bf1de81ea43d7b57e318c1bf4e69.tar.bz2
mpv-feb1f8f18fc2bf1de81ea43d7b57e318c1bf4e69.tar.xz
video/out: separate out code to compute window size
Currently, vo_reconfig() calculates the requested window size and sets the vo->dwidth/dheight fields _if_ VOCTRL_UPDATE_SCREENINFO is implemented by the VO or the windowing backend. The window size can be different from the display size if e.g. the --geometry option is used. It will also set the vo->dx/dy fields and read vo->xinerama_x/y. It turned out that this is very backwards and actually requires the windowing backends to workaround these things. There's also MPOpts.screenwidth/screenheight, which used to map to actual options, but is now used only to communicate the screen size to the vo.c code calculating the window size and position. Change this by making the window geometry calculations available as separate functions. This commit doesn't change any VO code yet, and just emulates the old way using the new functions. VO code will remove its usage of VOCTRL_UPDATE_SCREENINFO and use the new functions directly.
Diffstat (limited to 'old-makefile')
-rw-r--r--old-makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/old-makefile b/old-makefile
index 1cc0d20a15..9e8321a073 100644
--- a/old-makefile
+++ b/old-makefile
@@ -299,6 +299,7 @@ SOURCES = audio/audio.c \
video/out/vo.c \
video/out/vo_null.c \
video/out/vo_image.c \
+ video/out/win_state.c \
osdep/$(GETCH) \
osdep/$(TIMER) \
$(SOURCES-yes)