[MPlayer-dev-eng] [PATCH] vo_gl2 fullscreen aspect ratio fix (second try)
Tristan Seligmann
mithrandi-mplayer-dev-eng at mithrandi.za.net
Fri Sep 19 21:48:07 CEST 2003
Looks like this got last the last time I sent it. As per subject: the
fullscreen mode stretches the image to the whole screen, instead of
preserving aspect ratio. This patch corrects this behavior.
mithrandi
-------------- next part --------------
--- clean/libvo/x11_common.c 2003-09-13 18:04:06.000000000 +0200
+++ main/libvo/x11_common.c 2003-09-16 15:42:04.000000000 +0200
@@ -16,6 +16,7 @@
#include <signal.h>
#include "video_out.h"
+#include "aspect.h"
#include "help_mp.h"
#include <X11/Xmd.h>
@@ -699,6 +700,7 @@
if ( vo_window == None ) break;
vo_dwidth=Event.xconfigure.width;
vo_dheight=Event.xconfigure.height;
+ if (vo_fs) aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
#if 0
/* when resizing, x and y are zero :( */
vo_dx=Event.xconfigure.x;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030919/67d7a2ce/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list