summaryrefslogtreecommitdiff
path: root/recipes/qte/qte-2.3.10/fix-linuxfb-setmode.patch
blob: 212463cb03bdbddae79c1bd8ca64916a5fd2c5c2 (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
Set lstep properly on a mode change
Manuel Teira <manuel.teira@telefonica.net>

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp~fix-linuxfb-setmode
+++ qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp
@@ -791,11 +791,6 @@
     fb_fix_screeninfo finfo;
     fb_var_screeninfo vinfo;
 
-    if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo)) {
-	perror("reading /dev/fb0");
-	qFatal("Error reading fixed information");
-    }
-
     if (ioctl(fd, FBIOGET_VSCREENINFO, &vinfo)) {
 	qFatal("Error reading variable information in mode change");
     }
@@ -812,6 +807,10 @@
 	qFatal("Error reading changed variable information in mode change");
     }
 
+    if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo)) {
+	qFatal("Error reading changed fixed information in mode change");
+    }
+
     w=vinfo.xres;
     h=vinfo.yres;
     d=vinfo.bits_per_pixel;