revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / popupmenu / pmprefs.c
blob9e23855c846c74fbd495fa61f9f1782cba923d64
1 #include <dos/dos.h>
2 #include <proto/dos.h>
3 #include <exec/exec.h>
4 #include <proto/exec.h>
5 #include <string.h>
6 #include "pmprefs.h"
8 #ifdef __AROS__
9 #include "pmpriv.h"
10 void PM_LoadPrefsFile(STRPTR filename, ULONG flags, struct PopupMenuPrefs *prefs, struct PopupMenuPrefs *defprefs);
11 #endif
13 struct PopupMenuPrefs DefaultPrefs = {
14 1, /* pmp_Flags */
15 0, /* pmp_SubMenuDelay */
16 PMP_ANIM_NONE, /* pmp_Animation */
17 PMP_PD_SCREENBAR, /* pmp_PulldownPos */
18 FALSE, /* pmp_Sticky */
19 FALSE, /* pmp_SameHeight */
20 0, /* pmp_MenuBorder */
21 0, /* pmp_SelItemBorder */
22 0, /* pmp_SeparatorBar */
23 0, /* pmp_MenuTitles */
24 0, /* pmp_MenuItems */
25 2, /* pmp_XOffset */
26 2, /* pmp_YOffset */
27 2, /* pmp_XSpace */
28 2, /* pmp_YSpace */
29 2, /* pmp_Intermediate */
30 0, /* pmp_TextDisplace */
31 -30, /* pmp_ShadowR */
32 -30, /* pmp_ShadowG */
33 -30, /* pmp_ShadowB */
34 0, /* pmp_TransparencyR */
35 0, /* pmp_TransparencyG */
36 0, /* pmp_TransparencyB */
37 0, /* pmp_TransparencyBlur */
38 0, /* pmp_AnimationSpeed */
40 {0}, /* pmp_Reserved */
43 struct PopupMenuPrefs LoadedPrefs;
45 struct PopupMenuPrefs *PM_Prefs = &DefaultPrefs;
47 void PM_Prefs_Free()
51 void PM_Prefs_Load(STRPTR file)
53 PM_LoadPrefsFile(file, 0, &LoadedPrefs, &DefaultPrefs);
54 PM_Prefs = &LoadedPrefs;
57 void __saveds __asm PM_ReloadPrefs(void)
59 PM_Prefs_Load(PMP_PATH);