summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:35:00 +1000
committerDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:35:00 +1000
commit7e48d47fb51cc0f1a38a99acfe591821a45d7081 (patch)
tree41c04cdc80bc00234539a315da39f4430d234db0 /linux-core
parent0392badd84ec833ddd9e2b187844d246d860bbf7 (diff)
line_length calculation was incorrect.. I now can get fbcon to run
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fb.c b/linux-core/drm_fb.c
index 30b14188..1a0fb79c 100644
--- a/linux-core/drm_fb.c
+++ b/linux-core/drm_fb.c
@@ -121,7 +121,7 @@ int drmfb_probe(struct drm_device *dev, struct drm_framebuffer *fb)
info->fix.type_aux = 0;
info->fix.mmio_start = 0;
info->fix.mmio_len = 0;
- info->fix.line_length = fb->pitch;
+ info->fix.line_length = fb->pitch * ((fb->bits_per_pixel + 1) / 8);
info->flags = FBINFO_DEFAULT;