From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- plugins/Popup/src/skin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Popup/src/skin.cpp') diff --git a/plugins/Popup/src/skin.cpp b/plugins/Popup/src/skin.cpp index 0ccfdca254..477bc9f533 100644 --- a/plugins/Popup/src/skin.cpp +++ b/plugins/Popup/src/skin.cpp @@ -524,7 +524,7 @@ void PopupSkin::display(MyBitmap *bmp, PopupWnd2 *wnd, POPUPOPTIONS *options, DW if (textAreaWidth <= 0) textAreaWidth = wnd->getRenderInfo()->realtextw; drawActionBar(bmp, wnd, - db_get_b(NULL, MODULENAME, "CenterActions", 0) ? + g_plugin.getByte("CenterActions", 0) ? (pt.x + (textAreaWidth - wnd->getRenderInfo()->actw) / 2) : (PopupOptions.actions & ACT_RIGHTICONS) ? (pt.x + textAreaWidth - wnd->getRenderInfo()->actw) : @@ -1046,14 +1046,14 @@ void PopupSkin::saveOpts() const { char buf[128]; mir_snprintf(buf, "skin.%.120S", m_name); - db_set_dw(NULL, MODULENAME, buf, m_flags); + g_plugin.setDword(buf, m_flags); } void PopupSkin::loadOpts() const { char buf[128]; mir_snprintf(buf, "skin.%.120S", m_name); - m_flags = db_get_dw(NULL, MODULENAME, buf, m_flags); + m_flags = g_plugin.getDword(buf, m_flags); } // Skins -- cgit v1.2.3