Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ Timo Paulssen <timonator@perpetuum-immobile.de>
Daniel Beltrao Borges (aka dbb9h) <dbb9hells@gmail.com>
- prototype 2D cave-generation code

Timothy Welborn <welborntimothy@gmail.com>
- fixed GCC compile errors

4 changes: 2 additions & 2 deletions src/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void render_init (Render* render, Args* args)
float scale = MIN(
display->screen->w/(float)BASE_W,
display->screen->h/(float)BASE_H
) * args->antialiasing ? 2 : 1;
) && args->antialiasing ? 2 : 1;

render->font = load_font(FONT_FILE, 48*scale);

Expand Down Expand Up @@ -383,7 +383,7 @@ static void render_hud (Render* render, Game* game)
if (game->player.dist == FLT_MAX)
return;

#define HUD_TEXT_MAX 128 //TODO: strncat
#define HUD_TEXT_MAX 134 //TODO: strncat
char buf[HUD_TEXT_MAX];

#ifdef FONT_MENU_FILE
Expand Down
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const char* find_file (const char* basename,
snprintf (path, FILENAME_MAX, "%s/%s", paths[i], basename);
}
else { // bin
snprintf (path, FILENAME_MAX, "%s/%s/%s", bin_path, paths[i], basename);
snprintf (path, FILENAME_MAX + 2, "%s/%s/%s", bin_path, paths[i], basename);
}

if (access (path, R_OK) == 0)
Expand Down