diff options
author | David Airlie <airlied@asimov.stargames.com.au> | 2007-04-11 17:35:00 +1000 |
---|---|---|
committer | David Airlie <airlied@asimov.stargames.com.au> | 2007-04-11 17:35:00 +1000 |
commit | 7e48d47fb51cc0f1a38a99acfe591821a45d7081 (patch) | |
tree | 41c04cdc80bc00234539a315da39f4430d234db0 | |
parent | 0392badd84ec833ddd9e2b187844d246d860bbf7 (diff) |
line_length calculation was incorrect.. I now can get fbcon to run
-rw-r--r-- | linux-core/drm_fb.c | 2 |
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; |