summaryrefslogtreecommitdiff
path: root/src/egg/core/eggAsyncDisplay.cpp
diff options
context:
space:
mode:
authorElijah Thomas <42302100+elijah-thomas774@users.noreply.github.com>2024-05-04 12:39:21 -0400
committerGitHub <noreply@github.com>2024-05-04 12:39:21 -0400
commit0c949318e555e58c80fa74972fd814ac17c0287e (patch)
tree1faff84b78507acc7d13888b924641cb8a312d9f /src/egg/core/eggAsyncDisplay.cpp
parentfc1fa06ba448c6e27c13fde1c106954636cd35fc (diff)
parent953ef8c6179f6e908742720b485298e07b46d801 (diff)
Merge pull request #19 from robojumper/ipa
egg uses -ipa file
Diffstat (limited to 'src/egg/core/eggAsyncDisplay.cpp')
-rw-r--r--src/egg/core/eggAsyncDisplay.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/egg/core/eggAsyncDisplay.cpp b/src/egg/core/eggAsyncDisplay.cpp
index 7a128d55..0901271f 100644
--- a/src/egg/core/eggAsyncDisplay.cpp
+++ b/src/egg/core/eggAsyncDisplay.cpp
@@ -19,19 +19,6 @@ u8 clear_z_TX[64] ALIGN(32) = {
// clang-format on
} // namespace
-// 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) {
@@ -46,6 +33,12 @@ AsyncDisplay::AsyncDisplay(u8 maxRetrace) : Display(maxRetrace) {
OSInitMessageQueue(&this->mMesgQueue, this->mMesgBuf, 4);
}
+// Random function that pretends to do an int to float
+// cast here, for float ordering issues
+f64 cast() {
+ return 4503599627370496.0;
+}
+
f32 AsyncDisplay::calcS() {
f32 tmp = this->field_0x9C + this->field_0xA0;
this->field_0x9C = tmp;