11#include " amberlens0x344.h"
22
33#include " bronzefalcon0xc8770.h"
4+ #include " slatepeak0x58.h"
45
56DECOMP_SIZE_ASSERT (AmberLens0x344, 0x344 )
67
@@ -19,11 +20,31 @@ AmberLens0x344::~AmberLens0x344()
1920 }
2021}
2122
22- // STUB : GOLDP 0x10001f60
23- void AmberLens0x344::FUN_10001f60 (undefined* )
23+ // FUNCTION : GOLDP 0x10001f60
24+ void AmberLens0x344::FUN_10001f60 (BronzeFalcon0xc8770* p_renderer )
2425{
25- // TODO
26- STUB (0x10001f60 );
26+ m_unk0x340 = p_renderer;
27+ if (p_renderer != NULL ) {
28+ const SlatePeak0x58* renderTargetInfo = p_renderer->GetRenderTargetInfo ();
29+ if (m_unk0x11c == 0 || m_unk0x118 == 0 ) {
30+ m_unk0x110 = 0 ;
31+ m_unk0x114 = 0 ;
32+ m_unk0x118 = renderTargetInfo->GetWidth ();
33+ m_unk0x11c = renderTargetInfo->GetHeight ();
34+ }
35+
36+ if (!(m_flags & c_flagBit3)) {
37+ LegoFloat width = static_cast <LegoFloat>(m_unk0x118 - m_unk0x110);
38+ LegoFloat height = static_cast <LegoFloat>(m_unk0x11c - m_unk0x114);
39+ m_unk0x0c = width / height;
40+ }
41+
42+ m_unk0x120.m_unk0x210 = static_cast <LegoFloat>(m_unk0x118 - m_unk0x110);
43+ m_unk0x120.m_unk0x214 = static_cast <LegoFloat>(m_unk0x11c - m_unk0x114);
44+ m_unk0x120.m_unk0x218 = static_cast <LegoFloat>(m_unk0x110);
45+ m_unk0x120.m_unk0x21c = static_cast <LegoFloat>(m_unk0x114);
46+ m_flags |= c_flagBit0 | c_flagBit1;
47+ }
2748}
2849
2950// STUB: GOLDP 0x10002060
0 commit comments