mirror of https://github.com/PCSX2/pcsx2.git
pcsx2 MMI: another fix for PMFHL_CLAMP.
The dst param was never being modified since it was being passed by value instead of by reference. This leads me to believe the rest of MMI.cpp is probably riddled with errors too. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3698 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
fcc6f30489
commit
f438a8c8a3
|
@ -171,14 +171,11 @@ void PLZCW() {
|
||||||
_PLZCW (1);
|
_PLZCW (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
__fi void PMFHL_CLAMP(u16 dst, u32 src)
|
__fi void PMFHL_CLAMP(u16& dst, s32 src)
|
||||||
{
|
{
|
||||||
if ((int)src > (int)0x00007fff)
|
if (src > 0x00007fff) dst = 0x7fff;
|
||||||
dst = 0x7fff;
|
else if (src < 0xffff8000) dst = 0x8000;
|
||||||
else if ((int)src < (int)0xffff8000)
|
else dst = (u16)src;
|
||||||
dst = 0x8000;
|
|
||||||
else
|
|
||||||
dst = (u16)src;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PMFHL() {
|
void PMFHL() {
|
||||||
|
|
Loading…
Reference in New Issue