libmemdraw: remove unused static drawbuf variables and ptrfn() declaration

This commit is contained in:
cinap_lenrek 2016-11-17 19:42:12 +01:00
parent dd4de0b0fa
commit b4db73795e

View file

@ -461,9 +461,6 @@ struct Param {
int convdx;
};
static uchar *drawbuf;
static int ndrawbuf;
static int mdrawbuf;
static Readfn greymaskread, replread, readptr;
static Writefn nullwrite;
static Calcfn alphacalc0, alphacalc14, alphacalc2810, alphacalc3679, alphacalc5, alphacalc11, alphacalcS;
@ -475,7 +472,6 @@ static Writefn* writefn(Memimage*);
static Calcfn* boolcopyfn(Memimage*, Memimage*);
static Readfn* convfn(Memimage*, Param*, Memimage*, Param*, int*);
static Readfn* ptrfn(Memimage*);
static Calcfn *alphacalc[Ncomp] =
{
@ -2568,31 +2564,6 @@ DBG print("\n");
#undef DBG
/*
* Fill entire byte with replicated (if necessary) copy of source pixel,
* assuming destination ldepth is >= source ldepth.
*
* This code is just plain wrong for >8bpp.
*
ulong
membyteval(Memimage *src)
{
int i, val, bpp;
uchar uc;
unloadmemimage(src, src->r, &uc, 1);
bpp = src->depth;
uc <<= (src->r.min.x&(7/src->depth))*src->depth;
uc &= ~(0xFF>>bpp);
/* pixel value is now in high part of byte. repeat throughout byte
val = uc;
for(i=bpp; i<8; i<<=1)
val |= val>>i;
return val;
}
*
*/
void
memfillcolor(Memimage *i, ulong val)
{