#include "\projet\lib386\lib_sys\adeline.h" #include "\projet\lib386\lib_sys\lib_sys.h" #include "\projet\lib386\lib_svga\lib_svga.h" #include #include #include #include /*-------------------------------------------------------------------------*/ ULONG CreateMaskGph( UBYTE *ptsrc, UBYTE *ptdst ) { UBYTE *ptd ; ULONG nbg, off; ULONG *ptoff ; ULONG size, i ; ptoff = (ULONG*)ptdst ; off = *(ULONG *)ptsrc ;/* First Offset Src */ *ptoff++ = off ;/* First Offset */ ptd = ptdst+off ; nbg = (off-4)>>2 ;/* Nombre de Graph */ for ( i = 0 ; i < nbg ; i++ ) { size = CalcGraphMsk( i, ptsrc, ptd ) ; off += size ;/* Maj Offset */ *ptoff++ = off ;/* Write Offset */ ptd += size ;/* Maj Pt Dest */ } return(off) ; } /*-------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/