Skip to content

Commit 7790535

Browse files
committed
change defines to constexpr int
1 parent 36e305a commit 7790535

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/mame/konami/k053246_k053247_k055673.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,8 @@ void k053247_device::zdrawgfxzoom32GP(
444444
u32 code, u32 color, bool flipx, bool flipy, int sx, int sy,
445445
int scalex, int scaley, int alpha, int drawmode, int zcode, int pri, u8* gx_objzbuf, u8* gx_shdzbuf)
446446
{
447-
#define FP 19
448-
#define FPONE (1<<FP)
449-
#define FPHALF (1<<(FP-1))
450-
#define FPENT 0
447+
constexpr int FP = 19;
448+
constexpr int FPENT = 0;
451449

452450
// cull illegal and transparent objects
453451
if (!scalex || !scaley) return;
@@ -850,10 +848,6 @@ void k053247_device::zdrawgfxzoom32GP(
850848
}
851849
}
852850
}
853-
#undef FP
854-
#undef FPONE
855-
#undef FPHALF
856-
#undef FPENT
857851
}
858852

859853

0 commit comments

Comments
 (0)