aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-fb.c
diff options
context:
space:
mode:
authorSean McNeil <sean@mcneil.com>2009-02-20 02:27:00 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-20 02:27:00 +0000
commit6bf861ed654ff59cdf8829e47d6b7361c40f75ba (patch)
tree94dc859425e923d8a0a43a6a316a7712a3cb6a1d /drivers/mfd/glamo/glamo-fb.c
parent33a50bf7210e01d12cb71bdea988567b1829b1d9 (diff)
fix pan display
It looks like I made a mistake in the original pan implementation that is now getting exercised. The following fixes pan again. Cheers, Sean
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r--drivers/mfd/glamo/glamo-fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 19dcd71f371..4eb81a508e5 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -357,14 +357,14 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
var->xres = width;var->yres = height;
}
- var->xres_virtual = width * 2;
- var->yres_virtual = height;
+ var->xres_virtual = width;
+ var->yres_virtual = height * 2;
pitch = width * var->bits_per_pixel / 8;
} else {
var->xres = height;
var->yres = width;
- var->xres_virtual = height;
- var->yres_virtual = width * 2;
+ var->xres_virtual = height * 2;
+ var->yres_virtual = width;
pitch = height * var->bits_per_pixel / 8;
}