diff options
| author | robojumper <robojumper@gmail.com> | 2024-04-27 16:30:14 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2024-04-27 16:32:40 +0200 |
| commit | e0aa69ec362fdd2236b0dcae87c4b00c2a8a5594 (patch) | |
| tree | 7316861d2bc065df625cf91558b81c78fe0abfe2 /src/egg/core/eggAsyncDisplay.cpp | |
| parent | 00765b2fb0b05d01b0c3f1606383fbf5b82ecf1a (diff) | |
eggAsyncDisplay matching
Diffstat (limited to 'src/egg/core/eggAsyncDisplay.cpp')
| -rw-r--r-- | src/egg/core/eggAsyncDisplay.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/egg/core/eggAsyncDisplay.cpp b/src/egg/core/eggAsyncDisplay.cpp index f4d41219..8b2365bd 100644 --- a/src/egg/core/eggAsyncDisplay.cpp +++ b/src/egg/core/eggAsyncDisplay.cpp @@ -4,15 +4,26 @@ #include <rvl/GX/GXTexture.h> #include <rvl/GX/GXHardware.h> -// This file still has incorrect sdata2 - static EGG::AsyncDisplay *lbl_80576790[2]; +// Hacks for float ordering +static f32 one() { + return 1.0f; +} + +static f64 cast() { + return 4503599627370496.0; +} + +static f32 zero() { + return 0.0f; +} + namespace EGG { AsyncDisplay::AsyncDisplay(u8 maxRetrace): Display(maxRetrace) { this->field_0x98 = 0; - this->field_0x9C = 0.0f; + this->field_0x9C = 1.0f; this->field_0xA4 = 0; this->field_0xA8 = 0; this->field_0xAC = 0; |
