diff --git a/lib/Canvas.cpp b/lib/Canvas.cpp index c12244a..28dfea3 100644 --- a/lib/Canvas.cpp +++ b/lib/Canvas.cpp @@ -107,8 +107,8 @@ void Canvas::renderFruits(const Fruits & fruit, int eatenFruits) { const auto & pos = fruit.position(); renderSprite(sprite, pos); } - const size_t x = static_cast(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN); - const size_t y = static_cast((TARGET_MAZE_HEIGHT / 3.0) * 2); + const auto x = static_cast(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN); + const auto y = static_cast((TARGET_MAZE_HEIGHT / 3.0) * 2); for (auto i = 0; i < eatenFruits + 1; i++) { auto sprite_position = float(i) * SPRITE_WIDTH * 1.5f;