[MPlayer-cvslog] r31750 - trunk/libvo/vo_gl2.c
reimar
subversion at mplayerhq.hu
Sun Jul 18 20:04:50 CEST 2010
Author: reimar
Date: Sun Jul 18 20:04:50 2010
New Revision: 31750
Log:
Use identical code to -vo gl for -wid mode in gl2.
Fixes the same bugs (no video, video at wrong location...).
Modified:
trunk/libvo/vo_gl2.c
Modified: trunk/libvo/vo_gl2.c
==============================================================================
--- trunk/libvo/vo_gl2.c Sat Jul 17 15:14:53 2010 (r31749)
+++ trunk/libvo/vo_gl2.c Sun Jul 18 20:04:50 2010 (r31750)
@@ -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 );
}
More information about the MPlayer-cvslog
mailing list