diff options
author | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-04 18:39:16 +0000 |
---|---|---|
committer | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-04 18:39:16 +0000 |
commit | cf0e1967a3f5f1f53f3d27da93724ab2424eb605 (patch) | |
tree | e8f740264b6dff99a354526b2a2ac43a3bca20a3 /libvo | |
parent | 635c29055635a82fb7b36380fdbcf92935af90ef (diff) | |
download | mpv-cf0e1967a3f5f1f53f3d27da93724ab2424eb605.tar.bz2 mpv-cf0e1967a3f5f1f53f3d27da93724ab2424eb605.tar.xz |
set_window() fixing detection of changement of the window position
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6300 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_xvidix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index d88572c320..ffc712d812 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -67,6 +67,7 @@ static uint32_t image_format; static uint32_t image_depth; /* Window parameters */ +static uint32_t window_x, window_y; static uint32_t window_width, window_height; /* used by XGetGeometry & XTranslateCoordinates for moving/resizing window */ @@ -135,9 +136,12 @@ static void set_window(int force_update,const vo_tune_info_t *info) #endif /* set new values in VIDIX */ - if (force_update || (vo_dx != drwcX) || (vo_dy != drwcY) || + if (force_update || (window_x != drwcX) || (window_y != drwcY) || (window_width != drwWidth) || (window_height != drwHeight)) { + // do a backup of window coordinates + window_x = drwcX; + window_y = drwcY; vo_dx = drwcX; vo_dy = drwcY; window_width = drwWidth; |