Use the DEBUG nmake variable to determine whether to build for debugging
* */makefile.msc: Use the DEBUG nmake variable to determine whether to build for debugging or not. * libgimp/gimp.def: Add some missing entry points. * plug-ins/makefile.msc: Redo as to Yosh's reorg of the sources. Add some plug-ins missing earlier. (For instance print, which only prints to files on Win32. We still need a real Win32 print plug-in. Much code probably could be lifted from the bmp plug-in.) * plug-ins/MapObject/arcball.c: Change Qt_ToMatrix() to void, instead of returning the address of its parameter (dubious practise), as its value is never used anyway. For the following changes, thanks to Hans Breuer: * plug-ins/FractalExplorer/Dialogs.h: Check for feof, not to get into an endless loop on malformed files. * plug-ins/common/header.c: Support indexed images. * plug-ins/common/sunras.c * plug-ins/common/xwd.c * plug-ins/print/print.h * plug-ins/sgi/sgi.h: Include config.h, guard inclusion of unistd.h. * plug-ins/print/print.c: Guard for SIGBUS being undefined. Open output file in binary mode. * po/makefile.msc: Add no.
This commit is contained in:
@ -43,7 +43,7 @@ void ArcBall_CopyMat(HMatrix inm,HMatrix outm);
|
||||
/* Internal methods */
|
||||
/* ================ */
|
||||
|
||||
HMatrix *Qt_ToMatrix(Quat q,HMatrix out);
|
||||
void Qt_ToMatrix(Quat q,HMatrix out);
|
||||
Quat Qt_Conj(Quat q);
|
||||
Quat Qt_Mul(Quat qL, Quat qR);
|
||||
Quat Qt_FromBallPoints(HVect from, HVect to);
|
||||
@ -211,7 +211,7 @@ Quat Qt_Mul(Quat qL, Quat qR)
|
||||
/* system and right-handed rotations. */
|
||||
/* ============================================================== */
|
||||
|
||||
HMatrix *Qt_ToMatrix(Quat q, HMatrix out)
|
||||
void Qt_ToMatrix(Quat q, HMatrix out)
|
||||
{
|
||||
double Nq = q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w;
|
||||
double s = (Nq > 0.0) ? (2.0 / Nq) : 0.0;
|
||||
@ -224,7 +224,6 @@ HMatrix *Qt_ToMatrix(Quat q, HMatrix out)
|
||||
out[X][Z] = xz + wy; out[Y][Z] = yz - wx; out[Z][Z] = 1.0 - (xx + yy);
|
||||
out[X][W] = out[Y][W] = out[Z][W] = out[W][X] = out[W][Y] = out[W][Z] = 0.0;
|
||||
out[W][W] = 1.0;
|
||||
return ((HMatrix *)&out);
|
||||
}
|
||||
|
||||
/* Return conjugate of quaternion. */
|
||||
|
||||
Reference in New Issue
Block a user