mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* color.c (dealloc_color_pairs): Rename to ...
(done_colors): ... this. * layout.c (done_screen): Call done_colors() here ... * slint.c (slang_shutdown): ... but not here, as it's not S-Lang specific.
This commit is contained in:
parent
b6d7cae6d2
commit
714f3ee8a7
@ -1,5 +1,11 @@
|
||||
2003-10-24 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* color.c (dealloc_color_pairs): Rename to ...
|
||||
(done_colors): ... this.
|
||||
* layout.c (done_screen): Call done_colors() here ...
|
||||
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
|
||||
specific.
|
||||
|
||||
* cmd.c: Remove source routing code.
|
||||
* main.c: Likewise.
|
||||
|
||||
|
@ -445,7 +445,7 @@ try_alloc_color_pair (char *fg, char *bg)
|
||||
#endif /* !HAVE_SLANG */
|
||||
|
||||
void
|
||||
dealloc_color_pairs (void)
|
||||
done_colors (void)
|
||||
{
|
||||
struct colors_avail *p, *next;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
#ifndef __COLOR_H
|
||||
#define __COLOR_H
|
||||
|
||||
void init_colors (void);
|
||||
|
||||
extern int use_colors;
|
||||
extern int disable_colors;
|
||||
|
||||
@ -87,8 +85,9 @@ extern int alarm_colors[4];
|
||||
# define CTYPE int
|
||||
#endif
|
||||
|
||||
void init_colors (void);
|
||||
void done_colors (void);
|
||||
void mc_init_pair (int index, CTYPE foreground, CTYPE background);
|
||||
int try_alloc_color_pair (char *fg, char *bg);
|
||||
void dealloc_color_pairs (void);
|
||||
|
||||
#endif /* __COLOR_H */
|
||||
|
@ -624,6 +624,7 @@ done_screen ()
|
||||
reset_shell_mode ();
|
||||
mc_noraw_mode ();
|
||||
keypad (stdscr, FALSE);
|
||||
done_colors ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -251,7 +251,6 @@ slang_shutdown (void)
|
||||
slang_shell_mode ();
|
||||
do_exit_ca_mode ();
|
||||
SLang_reset_tty ();
|
||||
dealloc_color_pairs ();
|
||||
|
||||
/* Load the op capability to reset the colors to those that were
|
||||
* active when the program was started up
|
||||
|
Loading…
Reference in New Issue
Block a user