Merge pull request #274 from raven02/master

Border cosmetic fix in save/load menu + add 2 stubs in sceAtrac
This commit is contained in:
Henrik Rydgård committed 2012-12-27 23:24:23 -08:00
commit fb8604e772
3 files changed
+10 -6

No files matched your search

+4 -4
View File
@@ -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);
}
}
+4
View File
@@ -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;
}
+2 -2
View File
@@ -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;