src/gfxlib2/gfx_put_custom.c
/* Not thread-safe; putters should only be called from other gfx functions that
   take care of the synchronization */
Not thread-safe; putters should only be called from other gfx functions that
take care of the synchronization
Not thread - safe ; putters should only be called from other gfx functions that take care of the synchronization
void fb_hPutCustom(unsigned char *src, unsigned char *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
{
	static PUTTER *all_putters[] = {
		fb_hPutCustom1, fb_hPutCustom2, NULL, fb_hPutCustom4,
	};
	PUTTER *putter;
	FB_GFXCTX *context = fb_hGetContext();
	if (!context->putter[PUT_MODE_CUSTOM]) {
		context->putter[PUT_MODE_CUSTOM] = &all_putters[0];
	}
	putter = context->putter[PUT_MODE_CUSTOM][context->target_bpp - 1];
	putter(src, dest, w, h, src_pitch, dest_pitch, alpha, blender, param);
}
void fb_hPutCustom ( unsigned char * src , unsigned char * dest , int w , int h , int src_pitch , int dest_pitch , int alpha , BLENDER * blender , void * param ) { static PUTTER * all_putters [ ] = { fb_hPutCustom1 , fb_hPutCustom2 , NULL , fb_hPutCustom4 , } ; PUTTER * putter ; FB_GFXCTX * context = fb_hGetContext ( ) ; if ( ! context -> putter [ PUT_MODE_CUSTOM ] ) { context -> putter [ PUT_MODE_CUSTOM ] = & all_putters [ 0 ] ; } putter = context -> putter [ PUT_MODE_CUSTOM ] [ context -> target_bpp - 1 ] ; putter ( src , dest , w , h , src_pitch , dest_pitch , alpha , blender , param ) ; }
Not thread-safe; putters should only be called from other gfx functions that
take care of the synchronization
Not thread - safe ; putters should only be called from other gfx functions that take care of the synchronization