Skip to content

Commit

Permalink
change defines to constexpr int
Browse files Browse the repository at this point in the history
  • Loading branch information
FredYeye committed Feb 7, 2025
1 parent 36e305a commit 7790535
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/mame/konami/k053246_k053247_k055673.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,8 @@ void k053247_device::zdrawgfxzoom32GP(
u32 code, u32 color, bool flipx, bool flipy, int sx, int sy,
int scalex, int scaley, int alpha, int drawmode, int zcode, int pri, u8* gx_objzbuf, u8* gx_shdzbuf)
{
#define FP 19
#define FPONE (1<<FP)
#define FPHALF (1<<(FP-1))
#define FPENT 0
constexpr int FP = 19;
constexpr int FPENT = 0;

// cull illegal and transparent objects
if (!scalex || !scaley) return;
Expand Down Expand Up @@ -850,10 +848,6 @@ void k053247_device::zdrawgfxzoom32GP(
}
}
}
#undef FP
#undef FPONE
#undef FPHALF
#undef FPENT
}


Expand Down

0 comments on commit 7790535

Please sign in to comment.