diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-02 16:26:20 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-02 16:26:20 (EDT) |
commit | 947c9712a31c8031d1045e34b222384613cfa9b4 (patch) | |
tree | eea16aa218084080af273d2034121bfe42ceb588 | |
parent | 1ec10cdffee8e291329e10d7ea3559806ab9d9b9 (diff) | |
download | mazefight-947c9712a31c8031d1045e34b222384613cfa9b4.zip mazefight-947c9712a31c8031d1045e34b222384613cfa9b4.tar.gz mazefight-947c9712a31c8031d1045e34b222384613cfa9b4.tar.bz2 |
maze: Fix rendering
Wow.
-rw-r--r-- | src/maze.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -199,9 +199,9 @@ mf_maze_render(struct mf_maze *m, SDL_Renderer *renderer, SDL_Color *color, for (y = 0; y < m->h; ++y) { for (x = 0; x < m->w; ++x) { if (y < m->h - 1 && mf_maze_is_wall(m, x, y, 0, 1)) { - /* Draw v line */ + /* Draw h line */ if (SDL_RenderDrawLine(renderer, - (x+1) * cw, (y ) * cw, + (x ) * cw, (y+1) * cw, (x+1) * cw, (y+1) * cw) < 0) { SDL_LogError( @@ -212,9 +212,9 @@ mf_maze_render(struct mf_maze *m, SDL_Renderer *renderer, SDL_Color *color, } } if (x < m->w - 1 && mf_maze_is_wall(m, x, y, 1, 0)) { - /* Draw h line */ + /* Draw v line */ if (SDL_RenderDrawLine(renderer, - (x ) * cw, (y+1) * cw, + (x+1) * cw, (y ) * cw, (x+1) * cw, (y+1) * cw) < 0) { SDL_LogError( |