Hi all ,
can anyone explain me because in this code ( /* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaFillRect.c,v 1.15 2001/12/13 18:01:51 eich Exp $ */) the pGC->fgPixel variable is passed as unsigned long int , instead the function pointer to FillSolidRects accepts the variabile
int fg???
 
thanks...
Alecam
 
00113         /*********************\
00114         |     Solid Rects     |
00115         \*********************/
00116
00117 static void
00118 XAARenderSolidRects(
00119    GCPtr pGC,
00120    int nboxes,
00121    BoxPtr pClipBoxes,
00122    int xorg, int yorg
00123 ){
00124    XAAInfoRecPtr infoRec = GET_XAAINFORECPTR_FROM_GC(pGC);
00125
00126    (*infoRec->FillSolidRects) (infoRec->pScrn,
00127                pGC->fgPixel, pGC->alu, pGC->planemask, nboxes, pClipBoxes);
00128 }
 
example of int fg...
 
 
int  WriteBitmapFlags
void(*  FillSolidRects )(ScrnInfoPtr pScrn, int fg, int rop, unsigned int planemask, int nBox, BoxPtr pBox)
int  FillSolidRectsFlags
 
 
thanks alecam
 

Reply via email to