Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def MatchingFor(*versions):
Object(Matching, "Pack/RPKernel/IRPSysHostIOSocket.cpp"),
Object(Matching, "Pack/RPKernel/RPSysHostIOSocketManager.cpp"),
Object(Matching, "Pack/RPKernel/RP_DEBUG_STUB_0.cpp"),
Object(NonMatching, "Pack/RPKernel/RPSysTextWriter.cpp"),
Object(Matching, "Pack/RPKernel/RPSysTextWriter.cpp"),
Object(Matching, "Pack/RPKernel/RPSysMessage.cpp"),
Object(NonMatching, "Pack/RPKernel/RPSysKokeshi.cpp"),
Object(NonMatching, "Pack/RPKernel/RPSysKokeshiManager.cpp"),
Expand Down
14 changes: 9 additions & 5 deletions src/Pack/RPKernel/RPSysTextWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void RPSysTextWriter::Reset() {
EnableFixedWidth(false);
SetFixedWidth(0.0f);

SetColorMapping(nw4r::ut::Color::ELEMENT_MIN, nw4r::ut::Color::ELEMENT_MAX);
ResetColorMapping();
SetGradationMode(GRADMODE_NONE);
SetTextColor(nw4r::ut::Color::ELEMENT_MAX);

Expand Down Expand Up @@ -85,14 +85,18 @@ void RPSysTextWriter::PrintfZeroCenter(f32 x, f32 y, const char* pMsg, ...) {

switch (pScreen->GetCanvasMode()) {
case RPGrpScreen::CANVAS_CC: {
x = x * pScreen->GetWidth() / 2.0f;
y = y * pScreen->GetHeight() / 2.0f;
x = x * pScreen->GetWidth() / 2;
y = y * pScreen->GetHeight() / 2;
break;
}

case RPGrpScreen::CANVAS_LU: {
x = (x + 1.0f) * (pScreen->GetWidth() / 2.0f);
y = (-y + 1.0f) * (pScreen->GetHeight() / 2.0f);
x = (x + 1.0f) * pScreen->GetWidth() / 2;
y = (-y + 1.0f) * pScreen->GetHeight() / 2;
break;
}

default: {
break;
}
}
Expand Down
Loading