# HG changeset patch # User reimar # Date 1227472755 0 # Node ID 806c541d03dd6c9dda539aab6cebbcc8d90c3e4d # Parent dbcae9cd24b2bcb71c9afb94bf16829f5478239d Do not draw in window if our image has not yet been adjusted to the new window size. Fixes some cases of borders not being black in fullscreen when fullscreen image is scaled down. diff -r dbcae9cd24b2 -r 806c541d03dd libvo/vo_x11.c --- a/libvo/vo_x11.c Sun Nov 23 20:20:51 2008 +0000 +++ b/libvo/vo_x11.c Sun Nov 23 20:39:15 2008 +0000 @@ -468,6 +468,11 @@ { int x = (vo_dwidth - dst_width) / 2; int y = (vo_dheight - myximage->height) / 2; + + // do not draw if the image needs rescaling + if ((old_vo_dwidth != vo_dwidth || old_vo_dheight != vo_dheight) && zoomFlag) + return; + if (WinID == 0) { x = vo_dx; y = vo_dy;