comparison libvo/vo_dga.c @ 3852:cd642e995366

use XF86VidMode later in init (at line 1031) only if we've got support (if have_vm==1)
author alex
date Fri, 28 Dec 2001 20:52:54 +0000
parents a3739b590cf2
children 974e028471a4
comparison
equal deleted inserted replaced
3851:2600f70929b7 3852:cd642e995366
21 * BGR_32_24_888 21 * BGR_32_24_888
22 * 22 *
23 * - works only on x86 architectures 23 * - works only on x86 architectures
24 * 24 *
25 * $Log$ 25 * $Log$
26 * Revision 1.35 2001/12/28 20:52:54 alex
27 * use XF86VidMode later in init (at line 1031) only if we've got support (if have_vm==1)
28 *
26 * Revision 1.34 2001/12/04 17:24:25 alex 29 * Revision 1.34 2001/12/04 17:24:25 alex
27 * do not crash if can't get modelines (dga2.0) 30 * do not crash if can't get modelines (dga2.0)
28 * 31 *
29 * Revision 1.33 2001/11/06 11:21:08 nick 32 * Revision 1.33 2001/11/06 11:21:08 nick
30 * Move yuv2rgb to postprocess 33 * Move yuv2rgb to postprocess
1022 XDGASetViewport (vo_dga_dpy, XDefaultScreen(vo_dga_dpy), 0, 0, XDGAFlipRetrace); 1025 XDGASetViewport (vo_dga_dpy, XDefaultScreen(vo_dga_dpy), 0, 0, XDGAFlipRetrace);
1023 1026
1024 #else 1027 #else
1025 1028
1026 #ifdef HAVE_XF86VM 1029 #ifdef HAVE_XF86VM
1030 if (have_vm)
1031 {
1027 XF86VidModeLockModeSwitch(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),0); 1032 XF86VidModeLockModeSwitch(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),0);
1028 // Two calls are needed to switch modes on my ATI Rage 128. Why? 1033 // Two calls are needed to switch modes on my ATI Rage 128. Why?
1029 // for riva128 one call is enough! 1034 // for riva128 one call is enough!
1030 XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]); 1035 XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]);
1031 XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]); 1036 XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]);
1037 }
1032 #endif 1038 #endif
1033 1039
1034 XF86DGAGetViewPortSize(vo_dga_dpy,XDefaultScreen(vo_dga_dpy), 1040 XF86DGAGetViewPortSize(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),
1035 &vo_dga_vp_width, 1041 &vo_dga_vp_width,
1036 &vo_dga_vp_height); 1042 &vo_dga_vp_height);