mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-31 14:35:19 +00:00
Add original sizes as comments
This commit is contained in:
parent
476bb8837b
commit
7478f3190e
@ -90,25 +90,25 @@ Error PS4_SYSV_ABI sceImeDialogGetPanelSize(const OrbisImeDialogParam* param, u3
|
|||||||
if (!width || !height) {
|
if (!width || !height) {
|
||||||
return Error::INVALID_ADDRESS;
|
return Error::INVALID_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (param->type) {
|
switch (param->type) {
|
||||||
case OrbisImeType::Default:
|
case OrbisImeType::Default:
|
||||||
case OrbisImeType::BasicLatin:
|
case OrbisImeType::BasicLatin:
|
||||||
case OrbisImeType::Url:
|
case OrbisImeType::Url:
|
||||||
case OrbisImeType::Mail:
|
case OrbisImeType::Mail:
|
||||||
*width = 500;
|
*width = 500; // original: 793
|
||||||
if (True(param->option & OrbisImeDialogOption::Multiline)) {
|
if (True(param->option & OrbisImeDialogOption::Multiline)) {
|
||||||
*height = 300;
|
*height = 300;// original: 576
|
||||||
} else {
|
} else {
|
||||||
*height = 150;
|
*height = 150;// original: 476
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OrbisImeType::Number:
|
case OrbisImeType::Number:
|
||||||
*width = 370;
|
*width = 370; // original: 370
|
||||||
*height = 402;
|
*height = 402; // original: 470
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR(Lib_ImeDialog, "Unknown OrbisImeType: {}", (u32)param->type);
|
LOG_ERROR(Lib_ImeDialog, "Unknown OrbisImeType: {}", (u32)param->type);
|
||||||
|
return Error::INVALID_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Error::OK;
|
return Error::OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user