Fix camera bounds calculation

This commit is contained in:
2024-01-29 11:38:25 +01:00
parent 32fa02929d
commit bc463ac3e4

View File

@@ -8,8 +8,8 @@ static Rectangle getCameraBounds(Camera2D camera) {
Rectangle bounds = {
.x = camera.target.x,
.y = camera.target.y,
.width = GetScreenWidth() / camera.zoom,
.height = GetScreenHeight() / camera.zoom,
.width = GetScreenWidth() * camera.zoom,
.height = GetScreenHeight() * camera.zoom,
};
//bounds.width *= 0.8f;
//bounds.height *= 0.8f;