diff --git a/main.c b/main.c index 2f8b219..350643d 100644 --- a/main.c +++ b/main.c @@ -572,7 +572,10 @@ Camera cam = {.scale = 2.0f }; Vec2 cam_offset() { - return AddV2(cam.pos, MulV2F(screen_size(), 0.5f)); + Vec2 to_return = AddV2(cam.pos, MulV2F(screen_size(), 0.5f)); + to_return.X = (float)(int)to_return.X; + to_return.Y = (float)(int)to_return.Y; + return to_return; } // in pixels diff --git a/web_template.html b/web_template.html index 7bc91df..0f38740 100644 --- a/web_template.html +++ b/web_template.html @@ -53,9 +53,6 @@ body {
-