mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 19:01:07 +00:00
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28009 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
af80fe7f12
commit
b704defedd
@ -468,6 +468,11 @@ static void Display_Image(XImage * myximage, uint8_t * ImageData)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user