We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a11e5ed + acdc7e5 commit 87f8e86Copy full SHA for 87f8e86
src/mips/psyqo/primitives/common.hh
@@ -165,6 +165,7 @@ struct TPageLoc {
165
}
166
167
private:
168
+ TPageLoc(uint8_t i) : info(i) {}
169
uint8_t info = 0;
170
friend struct TPageAttr;
171
};
@@ -246,7 +247,7 @@ struct TPageAttr {
246
247
248
uint8_t getPageX() const { return info & 0x000f; }
249
uint8_t getPageY() const { return (info >> 4) & 0x0001; }
- uint8_t getPageLoc() const { return info & 0x001f; }
250
+ TPageLoc getPageLoc() const { return TPageLoc(info & 0x001f); }
251
Prim::TPageAttr::SemiTrans getSemiTrans() const {
252
return static_cast<Prim::TPageAttr::SemiTrans>((info >> 5) & 0x0003);
253
0 commit comments