cvg, gglide.c (grBufferClear): avoid parentheses warning.

binary output is identical.
This commit is contained in:
sezero
2018-08-30 17:02:47 +03:00
parent a7b3d9290c
commit 2a770d57d5
2 changed files with 29 additions and 31 deletions

View File

@@ -528,7 +528,7 @@ GR_ENTRY(grBufferClear, void, (GrColor_t color, GrAlpha_t alpha, FxU16 depth))
{
GR_SET_EXPECTED_SIZE(sizeof(FxU32), 1);
GR_SET(BROADCAST_ID, hw, bltSize,
(((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3) - 1));
(((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | 511));/* 511 == (0x1000 >> 3) - 1 */
GR_CHECK_SIZE();
}
@@ -831,7 +831,6 @@ GR_ENTRY(grBufferSwap, void, (int swapInterval))
}
#ifdef GLIDE_DEBUG
{
if ((FxI32)_GlideRoot.environment.snapshot > 0) {
static char saveDBG[GDBG_MAX_LEVELS];
int i;
@@ -854,7 +853,6 @@ GR_ENTRY(grBufferSwap, void, (int swapInterval))
}
}
}
}
#endif /* GLIDE_DEBUG */
#if (GLIDE_PLATFORM & GLIDE_HW_CVG)

View File

@@ -731,7 +731,7 @@ GR_ENTRY(grBufferClear, void, (GrColor_t color, GrAlpha_t alpha, FxU32 depth))
{
GR_SET_EXPECTED_SIZE(sizeof(FxU32), 1);
GR_SET(BROADCAST_ID, hw, bltSize,
(((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | (0x1000 >> 3) - 1));
(((((tileHi - tileLow) * gc->hwDep.cvgDep.xTilePages) - 1) << 16) | 511));/* 511 == (0x1000 >> 3) - 1 */
GR_CHECK_SIZE();
}