mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Prefer to avoid a macro.
This commit is contained in:
parent
462b7dcbfa
commit
dca8c51384
@ -32,6 +32,10 @@ enum Personality {
|
||||
MDVDP,
|
||||
};
|
||||
|
||||
constexpr bool is_sega_vdp(Personality p) {
|
||||
return p >= Personality::SMSVDP;
|
||||
}
|
||||
|
||||
enum class TVStandard {
|
||||
/*! i.e. 50Hz output at around 312.5 lines/field */
|
||||
PAL,
|
||||
@ -39,8 +43,6 @@ enum class TVStandard {
|
||||
NTSC
|
||||
};
|
||||
|
||||
#define is_sega_vdp(x) ((x) >= SMSVDP)
|
||||
|
||||
class Base {
|
||||
public:
|
||||
static uint32_t palette_pack(uint8_t r, uint8_t g, uint8_t b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user