Scaling code in imbuf didn't like float buffers enough yet

This commit is contained in:
Ton Roosendaal
2006-03-12 19:53:23 +00:00
parent e058a506fd
commit bf1032a80f

View File

@@ -610,7 +610,7 @@ static struct ImBuf *scaledowny(struct ImBuf *ibuf, int newy)
static struct ImBuf *scaleupx(struct ImBuf *ibuf, int newx)
{
uchar *rect,*_newrect,*newrect;
float *rectf,*_newrectf,*newrectf;
float *rectf,*_newrectf=NULL,*newrectf;
float sample,add;
float val_a,nval_a,diff_a;
float val_b,nval_b,diff_b;
@@ -642,7 +642,7 @@ static struct ImBuf *scaleupx(struct ImBuf *ibuf, int newx)
rect = (uchar *) ibuf->rect;
rectf = (float *) ibuf->rect_float;
newrect = _newrect;
newrectf = _newrectf = NULL;
newrectf = _newrectf;
for (y = ibuf->y; y>0 ; y--){