summaryrefslogtreecommitdiffstats
path: root/libvo/vo_tdfxfb.c
diff options
context:
space:
mode:
authormark <mark@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-23 16:52:54 +0000
committermark <mark@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-23 16:52:54 +0000
commita2dfc7a766c2f00408671327838602eebcc4cddf (patch)
tree1b668f5ecfebc6ad7688d652594f4e91179183d2 /libvo/vo_tdfxfb.c
parentddaa6dd19d52961065344b66a474dc4629d04cbd (diff)
downloadmpv-a2dfc7a766c2f00408671327838602eebcc4cddf.tar.bz2
mpv-a2dfc7a766c2f00408671327838602eebcc4cddf.tar.xz
Added the -geometry option (supports fbdev and tdfxfb drivers)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7867 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_tdfxfb.c')
-rw-r--r--libvo/vo_tdfxfb.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libvo/vo_tdfxfb.c b/libvo/vo_tdfxfb.c
index efb0d072c3..f74a25fd30 100644
--- a/libvo/vo_tdfxfb.c
+++ b/libvo/vo_tdfxfb.c
@@ -15,6 +15,7 @@
* 13/04/02: Fix rough OSD stuff by rendering it straight onto the output
* buffer. Added double-buffering. Supports hardware zoom/reduce zoom modes.
* 13/04/02: Misc cleanups of the code.
+ * 22/10/02: Added geometry support to it
*
* Hints and tricks:
* - Use -dr to get direct rendering
@@ -22,7 +23,8 @@
* - To get a black background and nice smooth OSD, use -double
* - To get the console as a background, but with scaled OSD, use -nodouble
* - The driver supports both scaling and shrinking the image using the -x and
- * -y options on the mplayer commandline.
+ * -y options on the mplayer commandline. Also repositioning via the -geometry
+ * option.
*/
#include <stdio.h>
@@ -200,15 +202,9 @@ static void clear_screen()
/* Setup output screen dimensions etc */
static void setup_screen(uint32_t full)
{
+ aspect(&vidwidth, &vidheight, full ? A_ZOOM : A_NOZOOM);
+ geometry(&vidx, &vidy, screenwidth, screenheight, vidwidth, vidheight, full);
vo_fs = full;
-
- aspect(&vidwidth,&vidheight, vo_fs ? A_ZOOM : A_NOZOOM);
- if(vo_fs) {
- vidx = (screenwidth - vidwidth) / 2;
- vidy = (screenheight - vidheight) / 2;
- } else
- vidx = vidy = 0;
-
clear_screen();
}