This patch wraps the ARGB cursor stuff inside "#ifdef ARGB_CURSOR".

-- 
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
--- XDirectFB/programs/Xserver/hw/directfb/directfbCursor.c     Thu Feb 13 18:51:34 
2003
+++ XDirectFB/programs/Xserver/hw/directfb/directfbCursor.c     Mon Feb 17 15:26:35 
+2003
@@ -62,7 +62,9 @@
   full_width  = width;
   full_height = height;
 
+#ifdef ARGB_CURSOR
   if (!pCursor->bits->argb)
+#endif
     {
       /* add shadow */
       full_width  +=  + 4;
@@ -92,6 +94,7 @@
       return NULL;
     }
 
+#ifdef ARGB_CURSOR
   if (pCursor->bits->argb)
     {
       CARD32 *src = pCursor->bits->argb;
@@ -115,6 +118,7 @@
 
       return surface;
     }
+#endif
 
   /* allocate shadow data */
   shadow_data = alloca (full_width * full_height);

Reply via email to