diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-05 11:43:48 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-05 11:43:48 +1000 |
commit | 56a1293184e4f628498c88e38e1601349b05ad93 (patch) | |
tree | b3a14f6bc62a28a0b750e9c8ca6809fd5381e001 /linux-core | |
parent | 1495dd31d60e588743f20a9e470c8b0045313e7c (diff) |
modesetting: fix fb clearing up
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/intel_fb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c index ae290f3c..0355e784 100644 --- a/linux-core/intel_fb.c +++ b/linux-core/intel_fb.c @@ -623,9 +623,12 @@ int intelfb_create(struct drm_device *dev, uint32_t fb_width, uint32_t fb_height info->screen_base = intel_fb->kmap.virtual; info->screen_size = info->fix.smem_len; /* FIXME */ + + memset(intel_fb->kmap.virtual, 0, info->screen_size); + info->pseudo_palette = fb->pseudo_palette; - info->var.xres_virtual = surface_width; - info->var.yres_virtual = surface_height; + info->var.xres_virtual = fb->width; + info->var.yres_virtual = fb->height; info->var.bits_per_pixel = fb->bits_per_pixel; info->var.xoffset = 0; info->var.yoffset = 0; |