summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-07 14:06:30 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-07 14:06:30 +0200
commit568bdcfd740b58dfdeef4944f45550572d903956 (patch)
tree187a1f6d191893ec0eddbd44c7a696de48adc886 /src/render/Hud.cpp
parentCorona streaks fix (diff)
downloadre3-568bdcfd740b58dfdeef4944f45550572d903956.tar
re3-568bdcfd740b58dfdeef4944f45550572d903956.tar.gz
re3-568bdcfd740b58dfdeef4944f45550572d903956.tar.bz2
re3-568bdcfd740b58dfdeef4944f45550572d903956.tar.lz
re3-568bdcfd740b58dfdeef4944f45550572d903956.tar.xz
re3-568bdcfd740b58dfdeef4944f45550572d903956.tar.zst
re3-568bdcfd740b58dfdeef4944f45550572d903956.zip
Diffstat (limited to 'src/render/Hud.cpp')
-rw-r--r--src/render/Hud.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index d6a5c7be..d74816bf 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -107,14 +107,9 @@ WRAPPER void CHud::Draw(void) { EAXJMP(0x5052A0); }
#else
void CHud::Draw()
{
- RwRenderStateSet(rwRENDERSTATEFOGENABLE, (void*)FALSE);
- RwRenderStateSet(rwRENDERSTATESRCBLEND, (void*)rwBLENDSRCALPHA);
- RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVSRCALPHA);
- RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)TRUE);
- RwRenderStateSet(rwRENDERSTATETEXTUREADDRESS, (void*)rwTEXTUREADDRESSMIRROR);
- RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void*)FALSE);
- RwRenderStateSet(rwRENDERSTATESHADEMODE, (void*)rwSHADEMODEFLAT);
- RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
+ // disable hud via second controller
+ if (CPad::GetPad(1)->GetStartJustDown())
+ m_Wants_To_Draw_Hud = !m_Wants_To_Draw_Hud;
if (CReplay::IsPlayingBack())
return;