From acd200770513ad03dd3f4bdc7448edfd69b1ff9d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 17 Nov 2003 06:54:52 +0000 Subject: [PATCH] Clear window when Manual Subwindows redirect is destroyed Fix Tile/Stipple origin with non-zero pixmap window origins Use computed depth for TrueColor visuals as fbdev doesn't have one. --- hw/kdrive/fbdev/fbdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index 113584070..c3db79f94 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -186,6 +186,8 @@ fbdevScreenInitialize (KdScreenInfo *screen, FbdevScrPriv *scrpriv) return FALSE; break; } + screen->fb[0].depth = depth; + screen->fb[0].bitsPerPixel = priv->var.bits_per_pixel; screen->rate = 72; scrpriv->randr = screen->randr; @@ -249,8 +251,6 @@ fbdevMapFramebuffer (KdScreenInfo *screen) screen->memory_base = (CARD8 *) (priv->fb); screen->memory_size = 0; screen->off_screen_base = 0; - screen->fb[0].depth = priv->var.bits_per_pixel; - screen->fb[0].bitsPerPixel = priv->var.bits_per_pixel; if (scrpriv->shadow) {