Mercurial > mplayer.hg
changeset 6299:4446af3c1a75
set_window() fixing detection of changement of the window position
author | attila |
---|---|
date | Tue, 04 Jun 2002 18:39:16 +0000 |
parents | d42cb911d7f7 |
children | c31d15532695 |
files | libvo/vo_xvidix.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_xvidix.c Tue Jun 04 16:38:18 2002 +0000 +++ b/libvo/vo_xvidix.c Tue Jun 04 18:39:16 2002 +0000 @@ -67,6 +67,7 @@ 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 @@ #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;