Some indentation cleanup.
This commit is contained in:
parent
bbc3a49f00
commit
60d291bcec
1 changed files with 367 additions and 369 deletions
|
|
@ -9844,12 +9844,13 @@ int do_open(int want_new_tool)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* (Re)allocate space for the information about these files: */
|
||||||
|
|
||||||
thumbs = (SDL_Surface * *) realloc(thumbs, sizeof(SDL_Surface *) * num_files_in_dirs);
|
thumbs = (SDL_Surface * *) realloc(thumbs, sizeof(SDL_Surface *) * num_files_in_dirs);
|
||||||
d_names = (char * *) realloc(d_names, sizeof(char *) * num_files_in_dirs);
|
d_names = (char * *) realloc(d_names, sizeof(char *) * num_files_in_dirs);
|
||||||
d_exts = (char * *) realloc(d_exts, sizeof(char *) * num_files_in_dirs);
|
d_exts = (char * *) realloc(d_exts, sizeof(char *) * num_files_in_dirs);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Sort: */
|
/* Sort: */
|
||||||
|
|
||||||
qsort(fs, num_files_in_dirs, sizeof(struct dirent),
|
qsort(fs, num_files_in_dirs, sizeof(struct dirent),
|
||||||
|
|
@ -9946,7 +9947,6 @@ int do_open(int want_new_tool)
|
||||||
if (img == NULL)
|
if (img == NULL)
|
||||||
{
|
{
|
||||||
/* No thumbnail - load original: */
|
/* No thumbnail - load original: */
|
||||||
|
|
||||||
/* (Make sure we have a .../saved/.thumbs/ directory:) */
|
/* (Make sure we have a .../saved/.thumbs/ directory:) */
|
||||||
|
|
||||||
tmp_fname = get_fname("saved/.thumbs");
|
tmp_fname = get_fname("saved/.thumbs");
|
||||||
|
|
@ -9965,7 +9965,6 @@ int do_open(int want_new_tool)
|
||||||
free(tmp_fname);
|
free(tmp_fname);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
snprintf(fname, sizeof(fname), "%s/%s",
|
snprintf(fname, sizeof(fname), "%s/%s",
|
||||||
dirname, f->d_name);
|
dirname, f->d_name);
|
||||||
debug(fname);
|
debug(fname);
|
||||||
|
|
@ -9980,8 +9979,7 @@ int do_open(int want_new_tool)
|
||||||
if (img == NULL)
|
if (img == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\nWarning: I can't open one of the "
|
"\nWarning: I can't open one of the saved files!\n"
|
||||||
"saved files!\n"
|
|
||||||
"%s\n"
|
"%s\n"
|
||||||
"The Simple DirectMedia Layer error that "
|
"The Simple DirectMedia Layer error that "
|
||||||
"occurred was:\n"
|
"occurred was:\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue