mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Merge pull request #45 from tmyqlfpir/port
Adjust spark scale depending on output resolution
This commit is contained in:
1 file changed
+3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user