aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/fb/fbwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/fb/fbwindow.c')
-rw-r--r--xorg-server/fb/fbwindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/fb/fbwindow.c b/xorg-server/fb/fbwindow.c
index 368c4b883..c90175faa 100644
--- a/xorg-server/fb/fbwindow.c
+++ b/xorg-server/fb/fbwindow.c
@@ -33,7 +33,7 @@ fbCreateWindow(WindowPtr pWin)
{
dixSetPrivate(&pWin->devPrivates, fbGetWinPrivateKey(pWin),
fbGetScreenPixmap(pWin->drawable.pScreen));
- if (pWin->drawable.bitsPerPixel == 32)
+ if (pWin->drawable.bitsPerPixel == 32 && pWin->drawable.depth <= 24)
pWin->drawable.bitsPerPixel =
fbGetScreenPrivate(pWin->drawable.pScreen)->win32bpp;
return TRUE;