Fixed compilation warnings.

This commit is contained in:
guillemj
2003-06-29 18:23:28 +00:00
parent 1dc8c723d6
commit f726c002ec
3 changed files with 9 additions and 9 deletions

View File

@@ -26,10 +26,10 @@
#include "texusint.h"
static int
dithmat[4][4] = { 0, 8, 2, 10,
12, 4, 14, 6,
3, 11, 1, 9,
15, 7, 13, 5 };
dithmat[4][4] = { {0, 8, 2, 10},
{12, 4, 14, 6},
{3, 11, 1, 9},
{15, 7, 13, 5} };
static struct {
int yhist[256], ihist[256], qhist[256];

View File

@@ -409,7 +409,7 @@ txMipNccNNet(TxMip *pxMip, TxMip *txMip, int format, FxU32 dither, FxU32 comp)
txMapPal256toYAB((FxU32 *)yabTable, (FxU8 *)map, ncolors, (FxU32 *)pxMip->pal);
if( txVerbose )
{
printf("eMax=(%3d%3d%3d)...eAvg=(%3d%3d%3d)\n",
printf("eMax=(%3ld%3ld%3ld)...eAvg=(%3ld%3ld%3ld)\n",
errG, errR, errB,
totG/ncolors, totR/ncolors, totB/ncolors
);

View File

@@ -28,10 +28,10 @@
#include "texusint.h"
static int
dithmat[4][4] = { 0, 8, 2, 10,
12, 4, 14, 6,
3, 11, 1, 9,
15, 7, 13, 5 };
dithmat[4][4] = { {0, 8, 2, 10},
{12, 4, 14, 6},
{3, 11, 1, 9},
{15, 7, 13, 5} };
// for error diffusion.
static int errR[MAX_TEXWIDTH], errG[MAX_TEXWIDTH], errB[MAX_TEXWIDTH];