summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-06 08:24:20 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-06 08:36:46 +0300
commitaeafa7a2b46e8ee84c9fe277d9cc6f14666a0465 (patch)
tree7f1561a1d0ed83b004e80b8144aac4921e2e8498 /libvo/x11_common.h
parent9298acdd605c49eeec6e8b6dc4b2a33b2aab40b5 (diff)
downloadmpv-aeafa7a2b46e8ee84c9fe277d9cc6f14666a0465.tar.bz2
mpv-aeafa7a2b46e8ee84c9fe277d9cc6f14666a0465.tar.xz
vo_xv: avoid clearing too much on resize
vo_xv set the "use_fs" parameter to vo_x11_clearwindow_part(). This meant it always used the whole screen size to calculate the area to clear. I can't see why overriding the vo->dwidth/dheight values would ever be the right thing to do (if in fullscreen they should be set to match that), so remove the use_fs parameter and always use the dwidth/dheight values in the function. Also delete code drawing back borders in vo_xv_draw colorkey. That should already happen in vo_x11_clearwindow_part(); if it doesn't then things need to be fixed anyway because colorkey code only ran in fullscreen mode (but borders must work in window mode too).
Diffstat (limited to 'libvo/x11_common.h')
-rw-r--r--libvo/x11_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/x11_common.h b/libvo/x11_common.h
index ba3d0e2617..ab5188159c 100644
--- a/libvo/x11_common.h
+++ b/libvo/x11_common.h
@@ -137,7 +137,7 @@ void vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis,
int x, int y, unsigned int width, unsigned int height, int flags,
Colormap col_map, const char *classname, const char *title);
void vo_x11_clearwindow_part(struct vo *vo, Window vo_window,
- int img_width, int img_height, int use_fs);
+ int img_width, int img_height);
void vo_x11_clearwindow(struct vo *vo, Window vo_window);
void vo_x11_ontop(struct vo *vo);
void vo_x11_border(struct vo *vo);