diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2023-09-05 21:08:13 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-05 12:08:13 -0600 |
| commit | 5d723a823f8717fd99187357b6c7c31aa25008eb (patch) | |
| tree | 859477e28aca74bedc0c56c820ff05becb4a0c32 /libs/JSystem/J2DGraph/J2DTextBoxEx.cpp | |
| parent | efa1d3152202bee7e9dc08aad00fe3861990af5a (diff) | |
J2DWindow OK (#1914)
Diffstat (limited to 'libs/JSystem/J2DGraph/J2DTextBoxEx.cpp')
| -rw-r--r-- | libs/JSystem/J2DGraph/J2DTextBoxEx.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libs/JSystem/J2DGraph/J2DTextBoxEx.cpp b/libs/JSystem/J2DGraph/J2DTextBoxEx.cpp index 51b86deddf..c7244c8bd9 100644 --- a/libs/JSystem/J2DGraph/J2DTextBoxEx.cpp +++ b/libs/JSystem/J2DGraph/J2DTextBoxEx.cpp @@ -562,8 +562,6 @@ bool J2DTextBoxEx::setBlackWhite(JUtility::TColor param_0, JUtility::TColor para /* 803084CC-80308668 302E0C 019C+00 4/4 0/0 0/0 .text * getBlackWhite__12J2DTextBoxExCFPQ28JUtility6TColorPQ28JUtility6TColor */ -// regalloc -#ifdef NONMATCHING bool J2DTextBoxEx::getBlackWhite(JUtility::TColor* param_0, JUtility::TColor* param_1) const { if (mMaterial == NULL) { return false; @@ -577,23 +575,25 @@ bool J2DTextBoxEx::getBlackWhite(JUtility::TColor* param_0, JUtility::TColor* pa *param_0 = JUtility::TColor(0); *param_1 = JUtility::TColor(0xffffffff); if (tevStageNum) { - J2DGXColorS10 local_30(*mMaterial->getTevBlock()->getTevColor(0)); - J2DGXColorS10 local_38(*mMaterial->getTevBlock()->getTevColor(1)); - *param_0 = JUtility::TColor((((u8)local_30.r) << 24) | (((u8)local_30.g) << 16) | (((u8)local_30.b) << 8) | ((u8)local_30.a)); - *param_1 = JUtility::TColor((((u8)local_38.r) << 24) | (((u8)local_38.g) << 16) | (((u8)local_38.b) << 8) | ((u8)local_38.a)); + J2DGXColorS10* local_30 = mMaterial->getTevBlock()->getTevColor(0); + s16 color0r = local_30->r; + s16 color0g = local_30->g; + s16 color0b = local_30->b; + s16 color0a = local_30->a; + J2DGXColorS10* local_38 = mMaterial->getTevBlock()->getTevColor(1); + s16 color1r = local_38->r; + s16 color1g = local_38->g; + s16 color1b = local_38->b; + s16 color1a = local_38->a; + *param_0 = JUtility::TColor( + (((u8)color0r) << 24) | (((u8)color0g) << 16) | (((u8)color0b) << 8) | + ((u8)color0a)); + *param_1 = JUtility::TColor( + (((u8)color1r) << 24) | (((u8)color1g) << 16) | (((u8)color1b) << 8) | + ((u8)color1a)); } return true; } -#else -#pragma push -#pragma optimization_level 0 -#pragma optimizewithasm off -asm bool J2DTextBoxEx::getBlackWhite(JUtility::TColor* param_0, JUtility::TColor* param_1) const { - nofralloc -#include "asm/JSystem/J2DGraph/J2DTextBoxEx/getBlackWhite__12J2DTextBoxExCFPQ28JUtility6TColorPQ28JUtility6TColor.s" -} -#pragma pop -#endif /* 80308668-803086FC 302FA8 0094+00 1/1 0/0 0/0 .text * isSetBlackWhite__12J2DTextBoxExCFQ28JUtility6TColorQ28JUtility6TColor */ |
