summaryrefslogtreecommitdiff
path: root/hw/darwin/iokit/xfIOKit.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/darwin/iokit/xfIOKit.c')
-rw-r--r--hw/darwin/iokit/xfIOKit.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/hw/darwin/iokit/xfIOKit.c b/hw/darwin/iokit/xfIOKit.c
index ef3aebb29..9a9d4b530 100644
--- a/hw/darwin/iokit/xfIOKit.c
+++ b/hw/darwin/iokit/xfIOKit.c
@@ -9,7 +9,7 @@
*
**************************************************************/
/*
- * Copyright (c) 2001-2002 Torrey T. Lyons. All Rights Reserved.
+ * Copyright (c) 2001-2004 Torrey T. Lyons. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -33,7 +33,7 @@
* holders shall not be used in advertising or otherwise to promote the sale,
* use or other dealings in this Software without prior written authorization.
*/
-/* $XdotOrg: xc/programs/Xserver/hw/darwin/iokit/xfIOKit.c,v 1.1.4.1.4.2 2004/03/04 20:16:10 kaleb Exp $ */
+/* $XdotOrg: xc/programs/Xserver/hw/darwin/iokit/xfIOKit.c,v 1.3 2004/07/30 17:37:09 torrey Exp $ */
/* $XFree86: xc/programs/Xserver/hw/darwin/iokit/xfIOKit.c,v 1.2 2003/10/16 23:50:09 torrey Exp $ */
#include "X.h"
@@ -269,7 +269,7 @@ static void *XFIOKitHIDThread(void *unused)
default:
continue;
}
-
+
DarwinEQEnqueue(&xe);
}
}
@@ -466,7 +466,9 @@ static Bool SetupFBandHID(
#ifdef __i386__
/* x86 in 8bit mode currently needs fixed color map... */
- if( pixelInfo.bitsPerComponent == 8 ) {
+ if (pixelInfo.bitsPerComponent == 8 &&
+ pixelInfo.componentCount == 1)
+ {
pixelInfo.pixelType = kIOFixedCLUTPixels;
}
#endif
@@ -574,7 +576,7 @@ Bool DarwinModeAddScreen(
* XFIOKitShadowUpdate
* Update the damaged regions of the shadow framebuffer on the screen.
*/
-static void XFIOKitShadowUpdate(ScreenPtr pScreen,
+static void XFIOKitShadowUpdate(ScreenPtr pScreen,
shadowBufPtr pBuf)
{
DarwinFramebufferPtr dfb = SCREEN_PRIV(pScreen);