mirror of https://github.com/mpv-player/mpv
VM Fix by Uwe.Reder@3soft.de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5539 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0d44a527f1
commit
cae41b33a9
|
@ -662,7 +662,7 @@ void vo_vm_switch(uint32_t X, uint32_t Y, int* modeline_width, int* modeline_hei
|
|||
|
||||
for (i=1; i<modecount; i++)
|
||||
if ((vidmodes[i]->hdisplay >= X) && (vidmodes[i]->vdisplay >= Y))
|
||||
if ( (vidmodes[i]->hdisplay < *modeline_width ) && (vidmodes[i]->vdisplay < *modeline_height) )
|
||||
if ( (vidmodes[i]->hdisplay <= *modeline_width ) && (vidmodes[i]->vdisplay <= *modeline_height) )
|
||||
{
|
||||
*modeline_width=vidmodes[i]->hdisplay;
|
||||
*modeline_height=vidmodes[i]->vdisplay;
|
||||
|
|
Loading…
Reference in New Issue