[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Wrong use of vqt_width() return value in xa_vdi.c



Hi,

I've just spotted this in xa_vdi.c:

###############
/* fvdi-bug #nn: if high-bit in c is set, vqt_width returns random values for 
cw */
if( C.fvdi_version > 0 && (c & 0x80) )
		vqt_width(v->handle, 'a', &cw, &tmp, &tmp);
else
		vqt_width(v->handle, c, &cw, &tmp, &tmp);

if (cw != -1)
{
		swidth += cw;
###############

According to TOS.HYP, it's the /return value/ of vqt_width() that is -1 in 
case of error, not the value of cw.

Cheers,
JFL
-- 
Jean-François Lemaire