mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 19:22:11 +00:00
vo_gl2: Use identical code to -vo gl for -wid mode
Fixes the same bugs (no video, video at wrong location...). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31750 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
578ad534b3
commit
f5ef880227
@ -430,9 +430,10 @@ static void resize(int x,int y){
|
||||
} else {
|
||||
//aspect(x, y, A_NOZOOM);
|
||||
if (WinID >= 0) {
|
||||
int top = 0, left = 0, w = x, h = y;
|
||||
geometry(&top, &left, &w, &h, vo_screenwidth, vo_screenheight);
|
||||
glViewport(top, left, w, h);
|
||||
int left = 0, top = 0, w = x, h = y;
|
||||
geometry(&left, &top, &w, &h, vo_dwidth, vo_dheight);
|
||||
top = y - h - top;
|
||||
glViewport(left, top, w, h);
|
||||
} else
|
||||
glViewport( 0, 0, x, y );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user