glide2x, tests: fix warning from qatest00.c:
qatest00.c:517: warning: operation on 'nCurrAlpha' may be undefined qatest00.c:528: warning: operation on 'nCurrAlpha' may be undefined
This commit is contained in:
@@ -513,9 +513,9 @@ int main( int argc, char **argv) {
|
||||
case 'a':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 0) ? 0 :
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: --nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: nCurrAlpha-1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -524,9 +524,9 @@ int main( int argc, char **argv) {
|
||||
case 'A':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 255) ? 255 :
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: ++nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: nCurrAlpha+1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -559,7 +559,7 @@ int main( int argc, char **argv) {
|
||||
case 'd':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiOffsetFix( plTxMnGetMultiOffsetFix() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiOffsetFix() ? "Multibase offset fix in\n" :
|
||||
"Multibase offset fix NOT\n");
|
||||
@@ -569,7 +569,7 @@ int main( int argc, char **argv) {
|
||||
case 'D':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiRevOrder( plTxMnGetMultiRevOrder() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiRevOrder() ? "Multibase in rev order\n" :
|
||||
"Multibase in linear order\n");
|
||||
@@ -867,7 +867,6 @@ doLoadTexture( const char *lpzFileName, GrTexInfo *tEtTexInfo,
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
{
|
||||
@@ -920,7 +919,6 @@ getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt )
|
||||
{
|
||||
@@ -990,7 +988,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodWidth(tLodToScle, tCurrAspct) == getLodWidth(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1008,8 +1005,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
(ret > 0.5f ? 1.0f : ret == 0.0f ? 0.0f : 0.5f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodHeight(tLodToScle, tCurrAspct) == getLodHeight(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1031,7 +1026,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
} /* doScaleScreenSurf */
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1046,7 +1040,6 @@ getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1061,7 +1054,6 @@ getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doUnloadTextures( )
|
||||
{
|
||||
@@ -1075,7 +1067,6 @@ doUnloadTextures( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodToDwnld( )
|
||||
{
|
||||
@@ -1112,7 +1103,6 @@ getLodToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodPrtlToDwnld( )
|
||||
{
|
||||
@@ -1188,7 +1178,6 @@ getLodPrtlToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doResetFgVerts( hTexId_t deTexId )
|
||||
{
|
||||
|
||||
@@ -513,9 +513,9 @@ int main( int argc, char **argv) {
|
||||
case 'a':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 0) ? 0 :
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: --nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: nCurrAlpha-1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -524,9 +524,9 @@ int main( int argc, char **argv) {
|
||||
case 'A':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 255) ? 255 :
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: ++nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: nCurrAlpha+1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -559,7 +559,7 @@ int main( int argc, char **argv) {
|
||||
case 'd':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiOffsetFix( plTxMnGetMultiOffsetFix() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiOffsetFix() ? "Multibase offset fix in\n" :
|
||||
"Multibase offset fix NOT\n");
|
||||
@@ -569,7 +569,7 @@ int main( int argc, char **argv) {
|
||||
case 'D':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiRevOrder( plTxMnGetMultiRevOrder() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiRevOrder() ? "Multibase in rev order\n" :
|
||||
"Multibase in linear order\n");
|
||||
@@ -867,7 +867,6 @@ doLoadTexture( const char *lpzFileName, GrTexInfo *tEtTexInfo,
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
{
|
||||
@@ -920,7 +919,6 @@ getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt )
|
||||
{
|
||||
@@ -990,7 +988,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodWidth(tLodToScle, tCurrAspct) == getLodWidth(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1008,8 +1005,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
(ret > 0.5f ? 1.0f : ret == 0.0f ? 0.0f : 0.5f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodHeight(tLodToScle, tCurrAspct) == getLodHeight(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1031,7 +1026,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
} /* doScaleScreenSurf */
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1046,7 +1040,6 @@ getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1061,7 +1054,6 @@ getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doUnloadTextures( )
|
||||
{
|
||||
@@ -1075,7 +1067,6 @@ doUnloadTextures( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodToDwnld( )
|
||||
{
|
||||
@@ -1112,7 +1103,6 @@ getLodToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodPrtlToDwnld( )
|
||||
{
|
||||
@@ -1188,7 +1178,6 @@ getLodPrtlToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doResetFgVerts( hTexId_t deTexId )
|
||||
{
|
||||
|
||||
@@ -513,9 +513,9 @@ int main( int argc, char **argv) {
|
||||
case 'a':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 0) ? 0 :
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: --nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha-1: nCurrAlpha-1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -524,9 +524,9 @@ int main( int argc, char **argv) {
|
||||
case 'A':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
nCurrAlpha = (nCurrAlpha == 255) ? 255 :
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: ++nCurrAlpha;
|
||||
(nCurrAlpha < 0) ? (int) alpha+1: nCurrAlpha+1;
|
||||
fxColorValue = ( 0x00FFFFFF | (nCurrAlpha << 24) );
|
||||
grConstantColorValue(fxColorValue);
|
||||
tlConOutput("Current fxColorValue is %-#8x\n", fxColorValue);
|
||||
@@ -559,7 +559,7 @@ int main( int argc, char **argv) {
|
||||
case 'd':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiOffsetFix( plTxMnGetMultiOffsetFix() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiOffsetFix() ? "Multibase offset fix in\n" :
|
||||
"Multibase offset fix NOT\n");
|
||||
@@ -569,7 +569,7 @@ int main( int argc, char **argv) {
|
||||
case 'D':
|
||||
tlConClear();
|
||||
bVerboseMode = FXFALSE;
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
tlConOutput("Verbose mode Off\n");
|
||||
plTxMnSetMultiRevOrder( plTxMnGetMultiRevOrder() ? FXFALSE : FXTRUE );
|
||||
tlConOutput( plTxMnGetMultiRevOrder() ? "Multibase in rev order\n" :
|
||||
"Multibase in linear order\n");
|
||||
@@ -867,7 +867,6 @@ doLoadTexture( const char *lpzFileName, GrTexInfo *tEtTexInfo,
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
{
|
||||
@@ -920,7 +919,6 @@ getFgVerts( hTexId_t deTexId, GrVertex *deFgVerts )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt )
|
||||
{
|
||||
@@ -990,7 +988,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodWidth(tLodToScle, tCurrAspct) == getLodWidth(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1008,8 +1005,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
(ret > 0.5f ? 1.0f : ret == 0.0f ? 0.0f : 0.5f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( !((deScleDir == SCALE_OUT) && /* is there somtin' to do */
|
||||
(getLodHeight(tLodToScle, tCurrAspct) == getLodHeight(tLodToScle -1, tCurrAspct))))
|
||||
{
|
||||
@@ -1031,7 +1026,6 @@ doScaleScreenSurf( hTexId_t deTexId, ScaleDir_t deScleDir, ScaleAmt_t deScleAmt
|
||||
} /* doScaleScreenSurf */
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1046,7 +1040,6 @@ getLodWidth( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int
|
||||
getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
{
|
||||
@@ -1061,7 +1054,6 @@ getLodHeight( GrLOD_t lod, GrAspectRatio_t aspect )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doUnloadTextures( )
|
||||
{
|
||||
@@ -1075,7 +1067,6 @@ doUnloadTextures( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodToDwnld( )
|
||||
{
|
||||
@@ -1112,7 +1103,6 @@ getLodToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
getLodPrtlToDwnld( )
|
||||
{
|
||||
@@ -1188,7 +1178,6 @@ getLodPrtlToDwnld( )
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
doResetFgVerts( hTexId_t deTexId )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user