aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch')
-rw-r--r--recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch b/recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch
new file mode 100644
index 0000000..be7a26e
--- /dev/null
+++ b/recipes-qtopia/xqt2/files/fix_qtscreen_HACK.patch
@@ -0,0 +1,55 @@
+diff -Nur xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc xqt2/xfree86/xqt-driver/qtscreen.cc
+--- xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc 2008-09-25 14:18:44.000000000 +0200
++++ xqt2/xfree86/xqt-driver/qtscreen.cc 2008-09-25 14:28:30.000000000 +0200
+@@ -109,6 +109,7 @@
+ desktopSize = newSize;
+ fullScrSize = desktopSize;
+ normalScrSize = fullScrSize;
++ /* FIXME: get taskbar size from opie
+ if (normalScrSize.height() >= 400) {
+ normalScrSize.setHeight( normalScrSize.height() - 38);
+ } else {
+@@ -117,7 +118,7 @@
+
+ if (!g_fFullScreen) {
+ fullScrSize = normalScrSize;
+- }
++ }*/
+
+ #ifdef DEBUG_SCR
+ normalScrSize.setHeight(640);
+@@ -128,6 +129,7 @@
+ setDisplaySize();
+
+ #ifdef QWS
++ /* FIXME: fix this more general
+ // zaurus hack
+ if (desktopSize.width() > desktopSize.height()) {
+ shadow.setScrRandr(270);
+@@ -136,6 +138,10 @@
+ shadow.setScrRandr(0);
+ qtRandRRotate(0);
+ }
++ */
++ // until that
++ shadow.setScrRandr(0);
++ qtRandRRotate(0);
+ #endif
+ }
+
+@@ -148,6 +154,7 @@
+ *h = fullScrSize.height();
+
+ #ifdef QWS
++ /* FIXME: dix this more general
+ // zaurus hack
+ if (*w > *h) {
+ // rotate!
+@@ -155,6 +162,7 @@
+ *w = *h;
+ *h = sw;
+ }
++ */
+
+ *depth = 16; // 16bpp ¸ÇÄê
+ *bits = NULL;