[MPlayer-dev-eng] Patch to position full screen window on TV out
Andrew de Quincey
adq_dvb at lidskialf.net
Sun Mar 16 21:21:48 CET 2003
Hi, first of all, the rationale for this patch. I have a Nvidia Geforce4 with TV out. I've set it up as a second screen
under XWindows, running at 800x600. I have a Sony widescreen TV. I have no window manager running on that
screen.
Problem: when I use mplayer, I lose 1.5 centimetres on both sides of the screen. The card uses the CENTRE of
the 800x600 screen. Now, I could spend hours messing with modelines (in fact I have, but nvidia's driver seems
to be a little odd with the TV out modes). I've also messed with the nv-tv-out project, but this randomly crashes
my machine, and is a bit over the top for what I want to do.
I can control the fullscreen size with "-screenh", "-screenw", but I can't centre it in the screen. That is what this
patch does; adds "-screenxpos", "-screenypos" parameters used to position the fullscreen window.
I HAVE tried "-geometry", "-x", "-y", "-xy", using windowed mode, and the like, but these do not solve my problem.
--- CUT HERE ---
Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.197
diff -r1.197 cfg-mplayer.h
257a258,259
> {"screenxpos", &vo_screenxpos, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
> {"screenypos", &vo_screenypos, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
Index: libvo/video_out.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/video_out.c,v
retrieving revision 1.68
diff -r1.68 video_out.c
25a26,27
> int vo_screenxpos=0;
> int vo_screenypos=0;
Index: libvo/video_out.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/video_out.h,v
retrieving revision 1.51
diff -r1.51 video_out.h
181a182,183
> extern int vo_screenxpos;
> extern int vo_screenypos;
Index: libvo/x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.140
diff -r1.140 x11_common.c
839c839
< x=0; y=0; w=vo_screenwidth; h=vo_screenheight;
---
> x=vo_screenxpos; y=vo_screenypos; w=vo_screenwidth; h=vo_screenheight;
--- CUT HERE ---
--
adq
More information about the MPlayer-dev-eng
mailing list