summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoracki2 <acki2@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-17 20:59:39 +0000
committeracki2 <acki2@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-17 20:59:39 +0000
commit4a17b6a5be84d79113e806cadb3d7f1cc5b3445b (patch)
tree9965a50674e8fd36f429e4cd547abf1ba8bc8f09 /libvo
parent8493d8711b33aec7ffc7dbb10df3f49b2fcc1186 (diff)
downloadmpv-4a17b6a5be84d79113e806cadb3d7f1cc5b3445b.tar.bz2
mpv-4a17b6a5be84d79113e806cadb3d7f1cc5b3445b.tar.xz
- doublebuffering now can be switched on and off with the -(no)double switch.
Default in libvo is disabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1151 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_dga.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libvo/vo_dga.c b/libvo/vo_dga.c
index b12aad5cab..7b098bc5f2 100644
--- a/libvo/vo_dga.c
+++ b/libvo/vo_dga.c
@@ -23,6 +23,10 @@
* - works only on x86 architectures
*
* $Log$
+ * Revision 1.24 2001/06/17 20:59:39 acki2
+ * - doublebuffering now can be switched on and off with the -(no)double switch.
+ * Default in libvo is disabled.
+ *
* Revision 1.23 2001/05/24 20:48:45 arpi_esp
* removed redundant osd.h includes
*
@@ -276,6 +280,7 @@ static XF86VidModeModeInfo **vo_dga_vidmodes=NULL;
extern int verbose;
extern int vo_dbpp;
+extern int vo_doublebuffering;
static int vo_dga_src_format;
static int vo_dga_width; // bytes per line in framebuffer
@@ -499,9 +504,8 @@ static void check_events(void)
static void flip_page( void ){
- vo_draw_text(vo_dga_src_width,vo_dga_src_height,draw_alpha);
-
if(vo_dga_dbf_mem_offset != 0){
+ vo_draw_text(vo_dga_src_width,vo_dga_src_height,draw_alpha);
#ifdef HAVE_DGA2
XDGASetViewport (vo_dga_dpy, XDefaultScreen(vo_dga_dpy),
@@ -1034,6 +1038,9 @@ static uint32_t init( uint32_t width, uint32_t height,
vo_dga_dbf_y_offset = y_off + vo_dga_src_height;
vo_dga_dbf_mem_offset = vo_dga_width * HW_MODE.vdm_bytespp * vo_dga_dbf_y_offset;
vo_dga_dbf_current = 0;
+
+
+ if(!vo_doublebuffering) vo_dga_dbf_mem_offset = NULL;
// if(format ==IMGFMT_YV12 )
//vo_dga_dbf_mem_offset = 0;