Skip to content

Commit 185d243

Browse files
committed
fix: velocitygraph y pos
1 parent 828e244 commit 185d243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Features/Hud/VelocityGraph.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ void VelocityGraph::Paint(int slot) {
7878
int x, y;
7979
engine->GetScreenSize(nullptr, x, y);
8080

81-
const Vector2<int> graphPos = Vector2<int>(x / 2, y) +
81+
Vector2<int> graphPos = Vector2<int>(x / 2, 0) +
8282
Vector2<int>(sar_velocitygraph_x.GetInt(), sar_velocitygraph_y.GetInt());
83+
if (graphPos.y < 0) graphPos.y += y;
8384

8485
bool should_draw_takeoff = (!last_on_ground[slot] || take_off_display_timeout[slot] > engine->GetClientTime()) && sar_velocitygraph_text_groundspeed.GetBool();
8586
int recentSpeed = velocityStamps[slot][velocityStamps[slot].size - 10].speed;

0 commit comments

Comments
 (0)