Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mips/psyqo/primitives/common.hh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ struct TPageLoc {
}

private:
TPageLoc(uint8_t i) : info(i) {}
uint8_t info = 0;
friend struct TPageAttr;
};
Expand Down Expand Up @@ -246,7 +247,7 @@ struct TPageAttr {
}
uint8_t getPageX() const { return info & 0x000f; }
uint8_t getPageY() const { return (info >> 4) & 0x0001; }
uint8_t getPageLoc() const { return info & 0x001f; }
TPageLoc getPageLoc() const { return TPageLoc(info & 0x001f); }
Prim::TPageAttr::SemiTrans getSemiTrans() const {
return static_cast<Prim::TPageAttr::SemiTrans>((info >> 5) & 0x0003);
}
Expand Down
Loading