diff options
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r-- | drivers/mfd/glamo/glamo-fb.c | 8 |
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; } |