From 91c188c4d05e150dd905a3d170cbae035f7dc0fc Mon Sep 17 00:00:00 2001 From: raven02 Date: Fri, 28 Dec 2012 11:22:12 +0800 Subject: [PATCH 1/3] Border cosmetic fix in save/load menu --- Core/Util/PPGeDraw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index 57e79195e6..f7655f0cbc 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -279,8 +279,8 @@ void PPGeDraw4Patch(int atlasImage, float x, float y, float w, float h, u32 colo if (!dlPtr) return; const AtlasImage &img = ppge_images[atlasImage]; - float borderx = img.w / 2; - float bordery = img.h / 2; + float borderx = img.w / 20; + float bordery = img.h / 20; float u1 = img.u1, uhalf = (img.u1 + img.u2) / 2, u2 = img.u2; float v1 = img.v1, vhalf = (img.v1 + img.v2) / 2, v2 = img.v2; float xmid1 = x + borderx; From cb2d8d5c755849a8a2262c46f70b660e9278a1c3 Mon Sep 17 00:00:00 2001 From: raven02 Date: Fri, 28 Dec 2012 11:40:44 +0800 Subject: [PATCH 2/3] Add 2 stubs in sceAtrac --- Core/HLE/sceAtrac.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index ae6b3e8589..37d9c148cc 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -71,12 +71,16 @@ u32 sceAtracGetBufferInfoForReseting(int atracID, int sample, u32 bufferInfoAddr u32 sceAtracGetBitrate(int atracID, u32 outBitrateAddr) { ERROR_LOG(HLE, "UNIMPL sceAtracGetBitrate(%i, %08x)", atracID, outBitrateAddr); + if (Memory::IsValidAddress(outBitrateAddr)) + Memory::Write_U32(64, outBitrateAddr); return 0; } u32 sceAtracGetChannel(int atracID, u32 channelAddr) { ERROR_LOG(HLE, "UNIMPL sceAtracGetChannel(%i, %08x)", atracID, channelAddr); + if (Memory::IsValidAddress(channelAddr)) + Memory::Write_U32(2, channelAddr); return 0; } From f78c519a96094625c7a059c9ddf1d0caff955d20 Mon Sep 17 00:00:00 2001 From: raven02 Date: Fri, 28 Dec 2012 12:03:53 +0800 Subject: [PATCH 3/3] OSK dialog cosmetic fix --- Core/Dialog/PSPOskDialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index a1c6e8fe7b..791a6d565d 100644 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -106,8 +106,8 @@ void PSPOskDialog::RenderKeyboard() if (limit <= 0) limit = 16; - const float keyboardLeftSide = (480.0f - (16.0f * KEYSPERROW)) / 2.0f; - float previewLeftSide = (480.0f - (16.0f * limit)) / 2.0f; + const float keyboardLeftSide = (480.0f - (23.0f * KEYSPERROW)) / 2.0f; + float previewLeftSide = (480.0f - (15.0f * limit)) / 2.0f; PPGeDrawText(oskDesc.c_str(), 480/2, 20, PPGE_ALIGN_CENTER, 0.5f, 0xFFFFFFFF); for (int i = 0; i < limit; ++i) @@ -134,10 +134,10 @@ void PSPOskDialog::RenderKeyboard() color = 0xFF7f7f7f; temp[0] = oskKeys[row][col]; - PPGeDrawText(temp, keyboardLeftSide + (16.0f * col), 70.0f + (25.0f * row), NULL, 0.6f, color); + PPGeDrawText(temp, keyboardLeftSide + (25.0f * col), 70.0f + (25.0f * row), NULL, 0.6f, color); if (selectedRow == row && col == selectedExtra) - PPGeDrawText("_", keyboardLeftSide + (16.0f * col), 70.0f + (25.0f * row), NULL, 0.6f, 0xFFFFFFFF); + PPGeDrawText("_", keyboardLeftSide + (25.0f * col), 70.0f + (25.0f * row), NULL, 0.6f, 0xFFFFFFFF); } }