summaryrefslogtreecommitdiff
path: root/src/egg/core/eggAsyncDisplay.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-04-27 16:36:50 +0200
committerrobojumper <robojumper@gmail.com>2024-04-27 16:36:50 +0200
commit8263b21dacc67b6be72324b76fae795b58df5567 (patch)
tree9c95139e4af97f671a76ab9a33027ec9204fc47c /src/egg/core/eggAsyncDisplay.cpp
parente0aa69ec362fdd2236b0dcae87c4b00c2a8a5594 (diff)
final cleanup
Diffstat (limited to 'src/egg/core/eggAsyncDisplay.cpp')
-rw-r--r--src/egg/core/eggAsyncDisplay.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/egg/core/eggAsyncDisplay.cpp b/src/egg/core/eggAsyncDisplay.cpp
index 8b2365bd..0865b526 100644
--- a/src/egg/core/eggAsyncDisplay.cpp
+++ b/src/egg/core/eggAsyncDisplay.cpp
@@ -36,16 +36,14 @@ AsyncDisplay::AsyncDisplay(u8 maxRetrace): Display(maxRetrace) {
f32 AsyncDisplay::calcS() {
f32 tmp = this->field_0x9C + this->field_0xA0;
this->field_0x9C = tmp;
- if (!(tmp > 1.0f)) {
- return tmp;
- }
-
- if (this->mScreenStateFlag.onBit(4)) {
- this->field_0x9C = tmp - 1.0f;
- this->mScreenStateFlag.resetBit(4);
- } else {
- this->field_0x9C = tmp - this->field_0xA0;
- this->mScreenStateFlag.setBit(4);
+ if (tmp > 1.0f) {
+ if (this->mScreenStateFlag.onBit(4)) {
+ this->field_0x9C = tmp - 1.0f;
+ this->mScreenStateFlag.resetBit(4);
+ } else {
+ this->field_0x9C = tmp - this->field_0xA0;
+ this->mScreenStateFlag.setBit(4);
+ }
}
return tmp;
}