Skip to content

Commit

Permalink
change to sizef
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy authored Sep 11, 2023
1 parent 97c2dcc commit 80cf80f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/supertux/statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ Statistics::draw_ingame_stats(DrawingContext& context, bool on_pause_menu)
: Statistics::perfect_color
);
context.color().draw_surface_scaled(coin_icon,
Rectf(pos.x + width + 3.f, pos.y - 5.f,
pos.x + width + 3.f + 32.f, pos.y - 5.f + 32.f),
Rectf(Vector(pos.x + width + 3.f, pos.y - 5.f), Sizef(32.f, 32.f)),
LAYER_HUD);
}

Expand Down Expand Up @@ -362,8 +361,7 @@ Statistics::draw_ingame_stats(DrawingContext& context, bool on_pause_menu)
: Statistics::perfect_color
);
context.color().draw_surface_scaled(badguy_icon,
Rectf(pos.x + 3.f + width, pos.y - 5.f,
pos.x + 3.f + width + 32.f, pos.y - 5.f + 32.f),
Rectf(Vector(pos.x + width + 3.f, pos.y - 5.f), Sizef(32.f, 32.f)),
LAYER_HUD);
}

Expand Down Expand Up @@ -391,8 +389,7 @@ Statistics::draw_ingame_stats(DrawingContext& context, bool on_pause_menu)
: Statistics::perfect_color
);
context.color().draw_surface_scaled(secret_icon,
Rectf(pos.x + 3.f + width, pos.y - 5.f,
pos.x + 3.f + width + 32.f, pos.y - 5.f + 32.f),
Rectf(Vector(pos.x + width + 3.f, pos.y - 5.f), Sizef(32.f, 32.f)),
LAYER_HUD);
}
}
Expand Down

0 comments on commit 80cf80f

Please sign in to comment.