fix gu protos

This commit is contained in:
Prakxo
2023-05-12 22:47:49 +02:00
parent edbcf8c53c
commit 777d138c8b
4 changed files with 25 additions and 14 deletions
+6 -6
View File
@@ -28,8 +28,8 @@ void fbdemo_wipe1_move(TransitionWipe* this, int rate){
if (this->direction != 0) {
this->texY += (((void)0, Common_Get(transWipeSpeed)) * 3) / rate;
if (this->texY >= (int)(153.0f * (1 << 2))) {
this->texY = (int)(153.0f * (1 << 2));
if (this->texY >= (int)(153 * (1 << 2))) {
this->texY = (int)(153 * (1 << 2));
this->finished = 1;
}
} else {
@@ -80,12 +80,12 @@ void fbdemo_wipe1_startup(TransitionWipe* this) {
this->finished = 0;
if (this->direction != 0) {
this->texY = (s32)(83.25f * (1 << 2));
this->texY = (int)(83.25f * (1 << 2));
} else {
this->texY = (s32)(153.0f * (1 << 2));
this->texY = (int)(153.0f * (1 << 2));
}
guPerspective(&this->projection, &this->normal, 60.0f, (4.0f / 3.0f), 10.0f, 12800.0f, 1.0f);
guPerspective(&this->projection, &this->normal, 60.0f, 1.33333337307f, 10.0f, 12800.0f, 1.0f);
guLookAt(&this->lookAt, 0.0f, 0.0f, 400.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
}
@@ -107,4 +107,4 @@ void fbdemo_wipe1_setcolor_rgba8888(TransitionWipe* this, u32 color){
u8 fbdemo_wipe1_is_finish(TransitionWipe* this){
return this->finished;
}
}