summaryrefslogtreecommitdiff
path: root/files.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-27 08:06:27 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-27 08:06:27 +0100
commitb38ed132a7df231fc08ce384d8559e6648fdd0cc (patch)
treea71b99edbc5ce15acfc2abec5e7c5b60edded5cd /files.c
parentf678684b470f02d9fed4818eb92c2a925380c428 (diff)
first step towards crop + some fixes to erase
Diffstat (limited to 'files.c')
-rw-r--r--files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/files.c b/files.c
index 811a9bc..c007eac 100644
--- a/files.c
+++ b/files.c
@@ -53,7 +53,7 @@ void load_file(FILE *fc){
while((fgets(screen[i].s, WIDTH+2, fin)) != NULL && i<HEIGHT)
screen[i++].s[WIDTH-1]='\0';
for(;i<HEIGHT; i++){
- erase_line(screen[i].s);
+ erase_line(i);
}
fclose(fin);
}