~l3kn/quad

e1253ad581b0bea7c03549913e8e84f673227816 — Leon Rische 5 months ago a8b4fa1
Improve square drawing
1 files changed, 3 insertions(+), 2 deletions(-)

M quad.c
M quad.c => quad.c +3 -2
@@ 34,8 34,9 @@ void drawSquare(int x, int y, int s, unsigned long long pattern, int outline) {
    SDL_Rect rect;
    rect.x = x;
    rect.y = y;
    rect.w = s;
    rect.h = s;
    // Offset by 1 so outlines overlap
    rect.w = s + 1;
    rect.h = s + 1;
    SDL_RenderDrawRect(renderer, &rect);
  }