This commit is contained in:
Miodrag Milanovic 2024-12-26 09:34:24 +01:00
parent 150428fe7b
commit f92728b826
2 changed files with 5 additions and 4 deletions

View File

@ -32,8 +32,9 @@ NPNR_PACKED_STRUCT(struct GateMatePipExtraDataPOD {
uint8_t type;
});
enum MuxFlags {
MUX_INVERT = 1,
enum MuxFlags
{
MUX_INVERT = 1,
MUX_VISIBLE = 2,
};

View File

@ -59,9 +59,9 @@ bool GateMateImpl::isBelLocationValid(BelId bel, bool explain_invalid) const
Loc loc = ctx->getBelLocation(bel);
int x = loc.x - 2;
int y = loc.y - 2;
if (x<2 || x>167)
if (x < 2 || x > 167)
return false;
if (y<2 || y>127)
if (y < 2 || y > 127)
return false;
return true;
}