summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-04-08 13:52:26 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-04-08 14:18:07 (GMT)
commit3b68918cf1754a915b0c399d855f178cb934ad6c (patch)
tree82fd3bb820b2ca7d1e414b5b7f39c1f0fe1e6288 /src/plugins/gfxdrivers
parent0d49bd5b518ab4253baf2e30fe6a0c6d2e8651ea (diff)
downloadQt-3b68918cf1754a915b0c399d855f178cb934ad6c.zip
Qt-3b68918cf1754a915b0c399d855f178cb934ad6c.tar.gz
Qt-3b68918cf1754a915b0c399d855f178cb934ad6c.tar.bz2
Get stride from LinuxFB instead of calculating it ourselves.
Fix comes from the bug report. Task-number: QTBUG-9532 Reviewed-by: Tom
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
index e6ac418..d05dd5d 100644
--- a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
+++ b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
@@ -95,7 +95,7 @@ static int pvrQwsInitFbScreen(int screen)
width = var.xres;
height = var.yres;
bytesPerPixel = var.bits_per_pixel / 8;
- stride = var.xres * bytesPerPixel;
+ stride = fix.line_length;
format = PVR2D_1BPP;
if (var.bits_per_pixel == 16) {
if (var.red.length == 5 && var.green.length == 6 &&