summaryrefslogtreecommitdiffstats
path: root/libvo/mga_common.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-07 01:07:46 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-07 01:07:46 +0000
commitcbad69d75ed8950ff33e1b04b69320f3f80efd58 (patch)
tree29f52b3863856035c596ac26aa97cd6ca9c61b11 /libvo/mga_common.c
parent1f034b682438cf746f9dfd7ec921d90e97c9fc11 (diff)
downloadmpv-cbad69d75ed8950ff33e1b04b69320f3f80efd58.tar.bz2
mpv-cbad69d75ed8950ff33e1b04b69320f3f80efd58.tar.xz
vsync in mga/xmga
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@48 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r--libvo/mga_common.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c
index 50a5954635..96eb765c6a 100644
--- a/libvo/mga_common.c
+++ b/libvo/mga_common.c
@@ -1,6 +1,8 @@
// mga_vid drawing functions
+extern int mga_next_frame;
+
static void
write_frame_g200(uint8_t *y,uint8_t *cr, uint8_t *cb)
{
@@ -154,17 +156,15 @@ draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
static void
vo_mga_flip_page(void)
{
-#if 0
- ioctl(f,MGA_VID_FSEL,&next_frame);
-
- if (next_frame)
- vid_data = frame1;
- else
- vid_data = frame0;
- next_frame = 2 - next_frame; // switch between fields A1 and B1
+// printf("-- flip to %d --\n",mga_next_frame);
+#if 1
+ ioctl(f,MGA_VID_FSEL,&mga_next_frame);
+ mga_next_frame=(mga_next_frame+1)&3;
+ vid_data=frames[mga_next_frame];
#endif
+
}