Skip to content

Commit

Permalink
32blit build fix
Browse files Browse the repository at this point in the history
Ugh, float constants
Daft-Freak committed Nov 4, 2023
1 parent 15543a7 commit 0818278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.cpp
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ void init()
if(!::set_screen_mode(ScreenMode::hires, PixelFormat::BGR555, {640, 480}))
set_screen_mode(ScreenMode::hires, PixelFormat::RGB565);

auto near = 0.1, far = 10.0;
double near = 0.1, far = 10.0;
auto tanFov = tan(0.785398163);
auto nearH = near * tanFov;
auto nearW = nearH * (double(screen.bounds.w) / screen.bounds.h);

0 comments on commit 0818278

Please sign in to comment.