From 2cb4655298083c0c05f68941fa7e4f37b6b51ebd Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 27 Dec 2010 02:08:31 +0200 Subject: omap: reserve enough memory for 24bpp modes --- frontend/linux/fbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/linux') diff --git a/frontend/linux/fbdev.c b/frontend/linux/fbdev.c index bcef0fc..224f42d 100644 --- a/frontend/linux/fbdev.c +++ b/frontend/linux/fbdev.c @@ -126,8 +126,9 @@ void *vout_fbdev_resize(struct vout_fbdev *fbdev, int w, int h, int bpp, fbdev->mem = mmap(0, mem_size, PROT_WRITE|PROT_READ, MAP_SHARED, fbdev->fd, 0); if (fbdev->mem == MAP_FAILED && fbdev->buffer_count > 1) { - fprintf(stderr, "Warning: can't map %zd bytes, doublebuffering disabled\n", fbdev->mem_size); + fprintf(stderr, "Warning: can't map %zd bytes, doublebuffering disabled\n", mem_size); fbdev->buffer_count = 1; + fbdev->buffer_write = 0; mem_size = fbdev->fb_size; fbdev->mem = mmap(0, mem_size, PROT_WRITE|PROT_READ, MAP_SHARED, fbdev->fd, 0); } -- cgit v1.2.3