Skip to content

Commit

Permalink
Merge pull request #1813 from Eeveelution/fix-translation-regs-in-ui
Browse files Browse the repository at this point in the history
fix trX, Y and Z not switching to fixed point representation
  • Loading branch information
nicolasnoble authored Dec 11, 2024
2 parents e579cd7 + dbb1db4 commit 3036b5a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/gui/widgets/registers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,15 @@ void PCSX::Widgets::Registers::draw(PCSX::GUI* gui, PCSX::psxRegisters* register
z /= magnitude;
ImGui::Text(" :: axis : {%3.5f, %3.5f, %3.5f}", x, y, z);
}
ImGui::Text("trX : %i", registers->CP2C.n.trX);
ImGui::Text("trY : %i", registers->CP2C.n.trY);
ImGui::Text("trZ : %i", registers->CP2C.n.trZ);
if (showFixed) {
ImGui::Text("trX : % 3.5f", fixedToFloat(registers->CP2C.n.trX));
ImGui::Text("trY : % 3.5f", fixedToFloat(registers->CP2C.n.trY));
ImGui::Text("trZ : % 3.5f", fixedToFloat(registers->CP2C.n.trZ));
} else {
ImGui::Text("trX : %i", registers->CP2C.n.trX);
ImGui::Text("trY : %i", registers->CP2C.n.trY);
ImGui::Text("trZ : %i", registers->CP2C.n.trZ);
}
displayMatrix(registers->CP2C.n.lMatrix, "L");
if (showFixed) {
ImGui::Text("rbk : % 3.5f", fixedToFloat(registers->CP2C.n.rbk));
Expand Down

0 comments on commit 3036b5a

Please sign in to comment.