aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-06 16:48:56 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-06 16:48:56 +0000
commit1df31addabe8a003709e6c892d2777e4f85766a3 (patch)
tree55f3d654127ae465db36985cd57cea4d6d92bded
parent04643759d078f92457848c9f083c8c7c34fe305d (diff)
downloadimv-1df31addabe8a003709e6c892d2777e4f85766a3.tar.gz
Renamed g_path.{reload,changed}
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index ec13391..eba35aa 100644
--- a/main.c
+++ b/main.c
@@ -19,7 +19,7 @@ struct {
struct {
struct loop_item_s *first, *last, *cur;
- int reload;
+ int changed;
int dir;
} g_path = {NULL,NULL,NULL,1,1};
@@ -89,21 +89,21 @@ void remove_current_path()
} else {
g_path.cur = cur->next;
}
- g_path.reload = 1;
+ g_path.changed = 1;
free(cur);
}
void next_path()
{
g_path.cur = g_path.cur->prev;
- g_path.reload = 1;
+ g_path.changed = 1;
g_path.dir = 1;
}
void prev_path()
{
g_path.cur = g_path.cur->next;
- g_path.reload = 1;
+ g_path.changed = 1;
g_path.dir = -1;
}
@@ -207,13 +207,13 @@ int main(int argc, char** argv)
break;
}
- while(g_path.reload) {
+ while(g_path.changed) {
load_image(g_path.cur->path);
if(g_img.tex == NULL) {
fprintf(stderr, "Ignoring unsupported file: %s\n", g_path.cur->path);
remove_current_path();
} else {
- g_path.reload = 0;
+ g_path.changed = 0;
reset_view();
}
}