Corregits mil warnings de int a float

Corregit getDisplayInfo per al calcul del zoomMax
This commit is contained in:
2025-10-16 10:12:03 +02:00
parent e811cf0a1d
commit 9a4b3b04a5
13 changed files with 95 additions and 55 deletions

View File

@@ -232,7 +232,7 @@ SDL_FPoint checkCollision(const Line& l1, const Line& l2) {
const float x = x1 + (uA * (x2 - x1));
const float y = y1 + (uA * (y2 - y1));
return {(int)round(x), (int)round(y)};
return {(float)round(x), (float)round(y)};
}
return {-1, -1};
}
@@ -259,7 +259,7 @@ SDL_FPoint checkCollision(const LineDiagonal& l1, const LineVertical& l2) {
const float x = x1 + (uA * (x2 - x1));
const float y = y1 + (uA * (y2 - y1));
return {(int)x, (int)y};
return {(float)x, (float)y};
}
return {-1, -1};
}