Modernize code
Can compile with arm-none-eabi-gcc 8.3.0 gbafix correctly handles ELF input
This commit is contained in:
@@ -1148,7 +1148,8 @@ static void sub_8112B78(struct Sprite *sprite)
|
||||
|
||||
if (++coeffB > 16)
|
||||
coeffB = 16;
|
||||
if (--(s16)coeffA < 0)
|
||||
--coeffA;
|
||||
if ((s16)coeffA < 0)
|
||||
coeffA = 0;
|
||||
|
||||
SetGpuReg(REG_OFFSET_BLDALPHA, BLDALPHA_BLEND(coeffA, coeffB));
|
||||
|
||||
Reference in New Issue
Block a user