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