extragear/libs/kipi-plugins/slideshow

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

extragear/libs/kipi-plugins/slideshow

Bugzilla from gustavo.boiko@kdemail.net
SVN commit 742966 by boiko:

Only use XRandR when under X11
CCMAIL: [hidden email]


 M  +12 -5     screenproperties.cpp  


--- trunk/extragear/libs/kipi-plugins/slideshow/screenproperties.cpp #742965:742966
@@ -28,13 +28,16 @@
 #include <QDataStream>
 #include <QApplication>
 #include <QDesktopWidget>
-#include <QX11Info>
 
-// X11 includes.
+#ifdef Q_WS_X11
+  #include <QX11Info>
 
-#include <X11/Xlib.h>
-#include <X11/extensions/Xrandr.h>
+  // X11 includes.
 
+  #include <X11/Xlib.h>
+  #include <X11/extensions/Xrandr.h>
+#endif
+
 // Local includes.
 
 #include "screenproperties.h"
@@ -49,6 +52,10 @@
     
 unsigned ScreenProperties::suggestFrameRate()
 {
+// use XRandR only in X11
+#ifndef Q_WS_X11
+    return 25;
+#else
     int eventBase, errorBase;
     if ( !XRRQueryExtension(QX11Info::display(), &eventBase, &errorBase)) {
         // No information, make a lucky guess on based on that ;)
@@ -90,9 +97,9 @@
             bestRate      = r;
         }
     } while (++i < 3);
-
     //qDebug("using %d Hz as framerate for effects", bestRate);
     return bestRate;
+#endif // Q_WS_X11
 }
 
 bool ScreenProperties::enableVSync()
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: extragear/libs/kipi-plugins/slideshow

Bugzilla from anaselli@linux.it
giovedì 29 novembre 2007, Gustavo P. Boiko ha scritto:
> SVN commit 742966 by boiko:
>
> Only use XRandR when under X11
> CCMAIL: [hidden email]
Please when you commit something about kipi-plugins send mails
to [hidden email] (at least also), that is the right place.

Regards,
        Angelo

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

signature.asc (196 bytes) Download Attachment