exa: A more correct fix.

This commit is contained in:
Maarten Maathuis 2008-12-21 00:08:56 +01:00
parent 2db7b66863
commit 1567b7243f

View File

@ -72,8 +72,7 @@ exaGetPixmapOffset(PixmapPtr pPix)
{
ExaScreenPriv (pPix->drawable.pScreen);
return ((unsigned long)(unsigned long *)ExaGetPixmapAddress(pPix) -
(unsigned long)pExaScr->info->memoryBase);
return (CARD8 *)ExaGetPixmapAddress(pPix) - pExaScr->info->memoryBase;
}
void *