Rev 5509 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5509 | Rev 5748 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | char config_section[] = "Config"; |
|
- | 2 | ||
1 | void LoadIniConfig() |
3 | void LoadIniConfig() |
2 | { |
4 | { |
3 | ini_get_int stdcall (#pixie_ini_path, "Config", "current_theme", THEME_DARK); current_theme = EAX; |
5 | ini_get_int stdcall (#pixie_ini_path, #config_section, "current_theme", THEME_DARK); current_theme = EAX; |
4 | ini_get_int stdcall (#pixie_ini_path, "Config", "window_mode", WINDOW_MODE_NORMAL); window_mode = EAX; |
6 | ini_get_int stdcall (#pixie_ini_path, #config_section, "window_mode", WINDOW_MODE_NORMAL); window_mode = EAX; |
5 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_x_normal", 100); win_x_normal = EAX; |
7 | ini_get_int stdcall (#pixie_ini_path, #config_section, "win_x_normal", 100); win_x_normal = EAX; |
6 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_y_normal", 90); win_y_normal = EAX; |
8 | ini_get_int stdcall (#pixie_ini_path, #config_section, "win_y_normal", 90); win_y_normal = EAX; |
7 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_x_small", -1); win_x_small = EAX; |
9 | ini_get_int stdcall (#pixie_ini_path, #config_section, "win_x_small", -1); win_x_small = EAX; |
8 | ini_get_int stdcall (#pixie_ini_path, "Config", "win_y_small", -1); win_y_small = EAX; |
10 | ini_get_int stdcall (#pixie_ini_path, #config_section, "win_y_small", -1); win_y_small = EAX; |
9 | ini_get_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, sizeof(work_folder), 0); |
11 | ini_get_str stdcall (#pixie_ini_path, #config_section, "last_folder", #work_folder, sizeof(work_folder), 0); |
Line 10... | Line 12... | ||
10 | 12 | ||
11 | if (current_theme == THEME_DARK) SetColorThemeDark(); else SetColorThemeLight(); |
13 | if (current_theme == THEME_DARK) SetColorThemeDark(); else SetColorThemeLight(); |
12 | if (win_x_small==-1) win_x_small = 2000; |
14 | if (win_x_small==-1) win_x_small = 2000; |
13 | if (win_y_small==-1) win_y_small = GetClientHeight() - skin.h + 1; |
15 | if (win_y_small==-1) win_y_small = GetClientHeight() - skin.h + 1; |
Line 23... | Line 25... | ||
23 | if (window_mode == WINDOW_MODE_SMALL) |
25 | if (window_mode == WINDOW_MODE_SMALL) |
24 | { |
26 | { |
25 | win_x_small = Form.left; |
27 | win_x_small = Form.left; |
26 | win_y_small = Form.top; |
28 | win_y_small = Form.top; |
27 | } |
29 | } |
28 | ini_set_int stdcall (#pixie_ini_path, "Config", "current_theme", current_theme); |
30 | ini_set_int stdcall (#pixie_ini_path, #config_section, "current_theme", current_theme); |
29 | ini_set_int stdcall (#pixie_ini_path, "Config", "window_mode", window_mode); |
31 | ini_set_int stdcall (#pixie_ini_path, #config_section, "window_mode", window_mode); |
30 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_x_normal", win_x_normal); |
32 | ini_set_int stdcall (#pixie_ini_path, #config_section, "win_x_normal", win_x_normal); |
31 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_y_normal", win_y_normal); |
33 | ini_set_int stdcall (#pixie_ini_path, #config_section, "win_y_normal", win_y_normal); |
32 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_x_small", win_x_small); |
34 | ini_set_int stdcall (#pixie_ini_path, #config_section, "win_x_small", win_x_small); |
33 | ini_set_int stdcall (#pixie_ini_path, "Config", "win_y_small", win_y_small); |
35 | ini_set_int stdcall (#pixie_ini_path, #config_section, "win_y_small", win_y_small); |
34 | ini_set_str stdcall (#pixie_ini_path, "Config", "last_folder", #work_folder, strlen(#work_folder)); |
36 | ini_set_str stdcall (#pixie_ini_path, #config_section, "last_folder", #work_folder, strlen(#work_folder)); |
35 | } |
37 | } |
Line 36... | Line 38... | ||
36 | 38 | ||
37 | struct struct_pixie_colors { |
39 | struct struct_pixie_colors { |
38 | dword color_top_panel_text, |
40 | dword color_top_panel_text, |