Add hide_tool_bar config file setting
In preparation for toolbar implementation
This commit is contained in:
@@ -561,6 +561,7 @@ load_general(void)
|
|||||||
|
|
||||||
kbd_req_capture = config_get_int(cat, "kbd_req_capture", 0);
|
kbd_req_capture = config_get_int(cat, "kbd_req_capture", 0);
|
||||||
hide_status_bar = config_get_int(cat, "hide_status_bar", 0);
|
hide_status_bar = config_get_int(cat, "hide_status_bar", 0);
|
||||||
|
hide_tool_bar = config_get_int(cat, "hide_tool_bar", 0);
|
||||||
|
|
||||||
confirm_reset = config_get_int(cat, "confirm_reset", 1);
|
confirm_reset = config_get_int(cat, "confirm_reset", 1);
|
||||||
confirm_exit = config_get_int(cat, "confirm_exit", 1);
|
confirm_exit = config_get_int(cat, "confirm_exit", 1);
|
||||||
@@ -2036,6 +2037,7 @@ config_load(void)
|
|||||||
|
|
||||||
kbd_req_capture = 0;
|
kbd_req_capture = 0;
|
||||||
hide_status_bar = 0;
|
hide_status_bar = 0;
|
||||||
|
hide_tool_bar = 0;
|
||||||
scale = 1;
|
scale = 1;
|
||||||
machine = machine_get_machine_from_internal_name("ibmpc");
|
machine = machine_get_machine_from_internal_name("ibmpc");
|
||||||
dpi_scale = 1;
|
dpi_scale = 1;
|
||||||
@@ -2222,6 +2224,11 @@ save_general(void)
|
|||||||
else
|
else
|
||||||
config_delete_var(cat, "hide_status_bar");
|
config_delete_var(cat, "hide_status_bar");
|
||||||
|
|
||||||
|
if (hide_tool_bar != 0)
|
||||||
|
config_set_int(cat, "hide_tool_bar", hide_tool_bar);
|
||||||
|
else
|
||||||
|
config_delete_var(cat, "hide_tool_bar");
|
||||||
|
|
||||||
if (confirm_reset != 1)
|
if (confirm_reset != 1)
|
||||||
config_set_int(cat, "confirm_reset", confirm_reset);
|
config_set_int(cat, "confirm_reset", confirm_reset);
|
||||||
else
|
else
|
||||||
|
@@ -90,7 +90,7 @@ extern int update_icons;
|
|||||||
extern int unscaled_size_x, /* current unscaled size X */
|
extern int unscaled_size_x, /* current unscaled size X */
|
||||||
unscaled_size_y; /* current unscaled size Y */
|
unscaled_size_y; /* current unscaled size Y */
|
||||||
|
|
||||||
extern int kbd_req_capture, hide_status_bar;
|
extern int kbd_req_capture, hide_status_bar, hide_tool_bar;
|
||||||
|
|
||||||
/* System-related functions. */
|
/* System-related functions. */
|
||||||
extern char *fix_exe_path(char *str);
|
extern char *fix_exe_path(char *str);
|
||||||
|
@@ -40,6 +40,7 @@ int rctrl_is_lalt;
|
|||||||
int update_icons;
|
int update_icons;
|
||||||
int kbd_req_capture;
|
int kbd_req_capture;
|
||||||
int hide_status_bar;
|
int hide_status_bar;
|
||||||
|
int hide_tool_bar;
|
||||||
int fixed_size_x = 640;
|
int fixed_size_x = 640;
|
||||||
int fixed_size_y = 480;
|
int fixed_size_y = 480;
|
||||||
extern int title_set;
|
extern int title_set;
|
||||||
|
@@ -65,6 +65,7 @@ int user_resize = 0;
|
|||||||
int fixed_size_x = 0, fixed_size_y = 0;
|
int fixed_size_x = 0, fixed_size_y = 0;
|
||||||
int kbd_req_capture = 0;
|
int kbd_req_capture = 0;
|
||||||
int hide_status_bar = 0;
|
int hide_status_bar = 0;
|
||||||
|
int hide_tool_bar = 0;
|
||||||
int dpi = 96;
|
int dpi = 96;
|
||||||
|
|
||||||
extern char openfilestring[512];
|
extern char openfilestring[512];
|
||||||
|
Reference in New Issue
Block a user