Hi all,

this patch lets us run qt based peers again.

The problem is that the function we used to disable double buffering has gone in qt-4.1. It is still documented in the qt manual but marked as to be fixed for qt-4.1.1. As I understand, the doc will be fixed and not the call itself.

Ok?

Andreas

2005-12-25  Andreas Tobler  <[EMAIL PROTECTED]>

        * native/jni/qt-peer/mainqtthread.cpp: Remove call to disable double
        buffering. Ability has gone in Qt-4.1.x.

Index: native/jni/qt-peer/mainqtthread.cpp
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/qt-peer/mainqtthread.cpp,v
retrieving revision 1.3
diff -u -r1.3 mainqtthread.cpp
--- native/jni/qt-peer/mainqtthread.cpp 21 Aug 2005 00:19:49 -0000      1.3
+++ native/jni/qt-peer/mainqtthread.cpp 25 Dec 2005 22:03:43 -0000
@@ -45,9 +45,6 @@
 MainThreadInterface *mainThread;
 QApplication *qApplication;

-#if defined(Q_WS_X11)
-extern void qt_x11_set_global_double_buffer( bool );
-#endif

 /**
  * Starts up a QApplication
@@ -92,11 +89,6 @@
   jfieldID nofid = env->GetFieldID( cls, "mainThreadInterface", "J" );
   env->SetLongField( obj, nofid, (jlong)mainThread );

-#if defined(Q_WS_X11)
-  // turn off double-buffering.
-  qt_x11_set_global_double_buffer( (doublebuffer == JNI_TRUE) );
-#endif
-
   return (jlong)qtApp;
 }



_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to