diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
commit | 53fe3e46177d17b4941610de19f5cc6210700cb4 (patch) | |
tree | b67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/MagneticWindows/src/Options.cpp | |
parent | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff) |
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/MagneticWindows/src/Options.cpp')
-rw-r--r-- | plugins/MagneticWindows/src/Options.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MagneticWindows/src/Options.cpp b/plugins/MagneticWindows/src/Options.cpp index 5af8e262f5..9718587a6d 100644 --- a/plugins/MagneticWindows/src/Options.cpp +++ b/plugins/MagneticWindows/src/Options.cpp @@ -64,9 +64,9 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP Options.SnapWidth = SendDlgItemMessage(hwndDlg, IDC_SLIDER_SNAPWIDTH, TBM_GETPOS, 0, 0); Options.ScriverWorkAround = (IsDlgButtonChecked(hwndDlg, IDC_CHK_SCRIVERWORKAROUND) == TRUE); - db_set_b(NULL, MODULENAME, "DoSnap", Options.DoSnap); - db_set_b(NULL, MODULENAME, "SnapWidth", Options.SnapWidth); - db_set_b(NULL, MODULENAME, "ScriverWorkAround", Options.ScriverWorkAround); + g_plugin.setByte("DoSnap", Options.DoSnap); + g_plugin.setByte("SnapWidth", Options.SnapWidth); + g_plugin.setByte("ScriverWorkAround", Options.ScriverWorkAround); break; } } @@ -89,7 +89,7 @@ int InitOptions(WPARAM wParam, LPARAM) void LoadOptions() { - Options.DoSnap = db_get_b(NULL, MODULENAME, "DoSnap", 1) != 0; - Options.SnapWidth = db_get_b(NULL, MODULENAME, "SnapWidth", cDefaultSnapWidth); - Options.ScriverWorkAround = db_get_b(NULL, MODULENAME, "ScriverWorkAround", 0) != 0; + Options.DoSnap = g_plugin.getByte("DoSnap", 1) != 0; + Options.SnapWidth = g_plugin.getByte("SnapWidth", cDefaultSnapWidth); + Options.ScriverWorkAround = g_plugin.getByte("ScriverWorkAround", 0) != 0; } |