Merge pull request #45 from tmyqlfpir/port

Adjust spark scale depending on output resolution
This commit is contained in:
fgsfds 2023-08-20 15:15:43 +02:00 committed by GitHub
commit 1b04dd8032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -425,6 +425,9 @@ Gfx *sparksRender(Gfx *gdl)
sp120 *= 0.2f;
sp120 *= viGetFovY() / 60.0f;
#ifndef PLATFORM_N64 // adjust scale for port
sp120 *= (float)(SCREEN_WIDTH_LO * SCREEN_HEIGHT_LO) / (float)(SCREEN_WIDTH_HI * SCREEN_HEIGHT_HI);
#endif
mtx4LoadIdentity(&spd4);