Skip to content

Commit

Permalink
Minor fixes on grid
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-royer committed Mar 31, 2023
1 parent 9766608 commit 3de7579
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified nevada_presentation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/sdl_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void sdl_labels(struct netcdf_data *data, SDL_Renderer *renderer, const int WIDT
if (!(y % 50) && y && y < HEIGHT - 50 && !(x % 240) && x)
{
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 200);
SDL_Rect rect = {x - 5, y - 5, 10, 10};
SDL_Rect rect = {x - 5, HEIGHT - y - 32, 10, 10};
SDL_RenderFillRect(renderer, &rect);
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 200);
SDL_RenderDrawRect(renderer, &rect);
Expand Down Expand Up @@ -239,7 +239,6 @@ void sdl_loop(SDL_Renderer *renderer, const char *filename, struct netcdf_data *
sprintf(coord_index, "%d", index);
sdl_render_text(renderer, jetbrains, x + 2, y + 2, coord_index, true);


sprintf(csv_row, "%d; %f; %s; %d;\n", index, targeted_data, date, targeted_y);

SDL_RenderPresent(renderer);
Expand Down

0 comments on commit 3de7579

Please sign in to comment.