diff options
author | wm4 <wm4@nowhere> | 2014-05-17 03:29:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-17 03:29:36 +0200 |
commit | 0e579f84394169e82bb88aa9b608f8d5b2fb21d2 (patch) | |
tree | c0ed9ba22e928934d8f363ebe2d4f8b175720995 /video/out/x11_common.h | |
parent | b4ccf765afcd8803bd397d7b68e3aca629f66e1f (diff) | |
download | mpv-0e579f84394169e82bb88aa9b608f8d5b2fb21d2.tar.bz2 mpv-0e579f84394169e82bb88aa9b608f8d5b2fb21d2.tar.xz |
x11: replace x/y/w/h with mp_rect
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 6a0d59a667..b2264563c7 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -60,26 +60,19 @@ struct vo_x11_state { int orig_layer; // Current actual window position (updated on window move/resize events). - int win_x; - int win_y; - unsigned int win_width; - unsigned int win_height; + struct mp_rect winrc; int pending_vo_events; // last non-fullscreen extends (updated on fullscreen or reinitialization) - int nofs_width; - int nofs_height; - int nofs_x; - int nofs_y; + struct mp_rect nofsrc; /* Keep track of original video width/height to determine when to * resize window when reconfiguring. Resize window when video size * changes, but don't force window size changes as long as video size * stays the same (even if that size is different from the current * window size after the user modified the latter). */ - int old_dwidth; - int old_dheight; + int old_dw, old_dh; /* Video size changed during fullscreen when we couldn't tell the new * size to the window manager. Must set window size when turning * fullscreen off. */ |