diff options
author | Keith Packard <keithp@keithp.com> | 2003-11-17 06:54:52 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2003-11-17 06:54:52 +0000 |
commit | acd200770513ad03dd3f4bdc7448edfd69b1ff9d (patch) | |
tree | f777bab4ed0ad41e9339a59428d637fc9349a13e | |
parent | d568221710959cf7d783e6ff0fb80fb43a231124 (diff) |
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.
-rw-r--r-- | hw/kdrive/fbdev/fbdev.c | 4 |
1 files 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) { |