summaryrefslogtreecommitdiff
path: root/packages/xqt2/files/fix_qtscreen_HACK.patch
blob: 7e4b2c658ae87d37aee9f51d657d764758de929a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff -Nur xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc xc/../xqt2/xfree86/xqt-driver/qtscreen.cc
--- xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc	2008-09-25 14:18:44.000000000 +0200
+++ xc/../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;