Author: toshok
Date: 2007-09-26 13:08:47 -0400 (Wed, 26 Sep 2007)
New Revision: 86419

Modified:
   trunk/moon/src/runtime.cpp
Log:
disable the XRANDR usage due to intel driver suckage

Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp  2007-09-26 16:24:03 UTC (rev 86418)
+++ trunk/moon/src/runtime.cpp  2007-09-26 17:08:47 UTC (rev 86419)
@@ -529,6 +529,13 @@
        s->cairo = s->cairo_xlib;
 
 #ifdef USE_XRANDR
+#if INTEL_DRIVERS_STOP_SUCKING
+       // apparently the i965 drivers blank external screens when
+       // getting the screen info (um, ugh?).  needless to say, this
+       // annoyance is worse than not using the monitor's refresh as
+       // the upper bound for our fps.
+       //
+       // http://lists.freedesktop.org/archives/xorg/2007-August/027616.html
        int event_base, error_base;
        GdkWindow *gdk_root = gtk_widget_get_root_window (widget);
        Display *dpy = GDK_WINDOW_XDISPLAY(gdk_root);
@@ -538,10 +545,13 @@
                                                                 root);
                short rate = XRRConfigCurrentRate (info);
                printf ("screen refresh rate = %d\n", rate);
-               TimeManager::Instance()->SetMaximumRefreshRate (rate);
+               TimeManager::Instance()->SetMaximumRefreshRate (rate);
                XRRFreeScreenConfigInfo (info);
        }
+#else
+       TimeManager::Instance()->SetMaximumRefreshRate (60);
 #endif
+#endif
 
        TimeManager::Instance()->AddHandler 
(TimeManager::Instance()->RenderEvent, render_cb, s);
        TimeManager::Instance()->AddHandler 
(TimeManager::Instance()->UpdateInputEvent, update_input_cb, s);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to