NX/VITA: Fix SCREENFLASH_FADE_INANDOUT updating too slow

This commit is contained in:
cypress 2024-01-14 21:21:38 -05:00 committed by GitHub
parent 24c89e197a
commit c34deca69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2140,11 +2140,11 @@ void HUD_Screenflash (void)
else { else {
// Fade In // Fade In
if (percentage_complete < 0.5) { if (percentage_complete < 0.5) {
flash_alpha = (float)percentage_complete; flash_alpha = (float)percentage_complete*2;
} }
// Fade Out // Fade Out
else { else {
flash_alpha = invertfloat((float)percentage_complete); flash_alpha = invertfloat((float)percentage_complete)(2;
} }
} }
@ -2251,4 +2251,4 @@ void HUD_Draw (void) {
HUD_Screenflash(); HUD_Screenflash();
GL_SetCanvas(CANVAS_DEFAULT); GL_SetCanvas(CANVAS_DEFAULT);
} }