From f7bad51cc76aaee699143f1e633d927be3d95f8a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Dec 2013 08:54:01 -0800 Subject: [PATCH] Clip in PPGe, fixing issues in softgpu. We were just drawing wrong, so softgpu was correct. --- Core/Dialog/PSPSaveDialog.cpp | 2 +- Core/Util/PPGeDraw.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Dialog/PSPSaveDialog.cpp b/Core/Dialog/PSPSaveDialog.cpp index 4612b99c71..836d03477d 100755 --- a/Core/Dialog/PSPSaveDialog.cpp +++ b/Core/Dialog/PSPSaveDialog.cpp @@ -406,7 +406,7 @@ void PSPSaveDialog::DisplaySaveDataInfo1() snprintf(saveTitle, 512, "%s", param.GetFileInfo(currentSelectedSave).saveTitle); snprintf(saveDetail, 512, "%s", param.GetFileInfo(currentSelectedSave).saveDetail); - PPGeDrawRect(180, 136, 980, 137, CalcFadedColor(0xFFFFFFFF)); + PPGeDrawRect(180, 136, 480, 137, CalcFadedColor(0xFFFFFFFF)); std::string titleTxt = title; std::string timeTxt = time; std::string saveTitleTxt = saveTitle; diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index db6f9a15ed..f940f069b2 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -287,7 +287,7 @@ void PPGeBegin() PPGeSetDefaultTexture(); WriteCmd(GE_CMD_SCISSOR1, (0 << 10) | 0); - WriteCmd(GE_CMD_SCISSOR2, (1023 << 10) | 1023); + WriteCmd(GE_CMD_SCISSOR2, (271 << 10) | 479); WriteCmd(GE_CMD_MINZ, 0); WriteCmd(GE_CMD_MAXZ, 0xFFFF);