mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
VideoCommon: Create dedicated structs for scissor pos/offset
This commit is contained in:
@ -815,19 +815,10 @@ std::pair<std::string, std::string> GetBPRegInfo(u8 cmd, u32 cmddata)
|
||||
fmt::to_string(TevStageIndirect{.fullhex = cmddata}));
|
||||
|
||||
case BPMEM_SCISSORTL: // 0x20
|
||||
{
|
||||
const X12Y12 top_left{.hex = cmddata};
|
||||
return std::make_pair(RegName(BPMEM_SCISSORTL),
|
||||
fmt::format("Scissor Top: {}\nScissor Left: {}", top_left.y, top_left.x));
|
||||
}
|
||||
return std::make_pair(RegName(BPMEM_SCISSORTL), fmt::to_string(ScissorPos{.hex = cmddata}));
|
||||
|
||||
case BPMEM_SCISSORBR: // 0x21
|
||||
{
|
||||
const X12Y12 bottom_right{.hex = cmddata};
|
||||
return std::make_pair(
|
||||
RegName(BPMEM_SCISSORBR),
|
||||
fmt::format("Scissor Bottom: {}\nScissor Right: {}", bottom_right.y, bottom_right.x));
|
||||
}
|
||||
return std::make_pair(RegName(BPMEM_SCISSORBR), fmt::to_string(ScissorPos{.hex = cmddata}));
|
||||
|
||||
case BPMEM_LINEPTWIDTH: // 0x22
|
||||
return std::make_pair(RegName(BPMEM_LINEPTWIDTH), fmt::to_string(LPSize{.hex = cmddata}));
|
||||
@ -1002,11 +993,8 @@ std::pair<std::string, std::string> GetBPRegInfo(u8 cmd, u32 cmddata)
|
||||
// TODO: Description
|
||||
|
||||
case BPMEM_SCISSOROFFSET: // 0x59
|
||||
{
|
||||
const S32X10Y10 xy{.hex = cmddata};
|
||||
return std::make_pair(RegName(BPMEM_SCISSOROFFSET),
|
||||
fmt::format("Scissor X offset: {}\nScissor Y offset: {}", xy.x, xy.y));
|
||||
}
|
||||
fmt::to_string(ScissorOffset{.hex = cmddata}));
|
||||
|
||||
case BPMEM_PRELOAD_ADDR: // 0x60
|
||||
return DescriptionlessReg(BPMEM_PRELOAD_ADDR);
|
||||
|
Reference in New Issue
Block a user