From 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 22:27:16 +0000 Subject: - rest of menus cleared; - old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/mTextControl/src/textusers.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/mTextControl') diff --git a/plugins/mTextControl/src/textusers.cpp b/plugins/mTextControl/src/textusers.cpp index 60b849252a..3f2c2f0f0f 100644 --- a/plugins/mTextControl/src/textusers.cpp +++ b/plugins/mTextControl/src/textusers.cpp @@ -47,8 +47,8 @@ MTI_TextUserAdd(const char *userTitle, DWORD options) textUserNew->name = new char [lstrlenA(userTitle)+1]; lstrcpyA(textUserNew->name, userTitle); textUserNew->options = - (DBGetContactSettingDword(0, MODULNAME, userTitle, options)&MTEXT_FANCY_MASK) | (textUserNew->options&MTEXT_SYSTEM_MASK); - DBWriteContactSettingDword(0, MODULNAME, userTitle, textUserNew->options); + (db_get_dw(0, MODULNAME, userTitle, options)&MTEXT_FANCY_MASK) | (textUserNew->options&MTEXT_SYSTEM_MASK); + db_set_dw(0, MODULNAME, userTitle, textUserNew->options); textUserNew->prev = textUserLast; textUserNew->next = 0; if (textUserLast) @@ -77,12 +77,12 @@ void TextUserSetOptions(HANDLE userHandle, DWORD options) void TextUsersSave() { for (TextUser *textUser = textUserFirst; textUser; textUser = textUser->next) - DBWriteContactSettingDword(0, MODULNAME, textUser->name, textUser->options); + db_set_dw(0, MODULNAME, textUser->name, textUser->options); } void TextUsersReset() { for (TextUser *textUser = textUserFirst; textUser; textUser = textUser->next) textUser->options = - (DBGetContactSettingDword(0, MODULNAME, textUser->name, 0)&MTEXT_FANCY_MASK) | (textUser->options&MTEXT_SYSTEM_MASK); + (db_get_dw(0, MODULNAME, textUser->name, 0)&MTEXT_FANCY_MASK) | (textUser->options&MTEXT_SYSTEM_MASK); } -- cgit v1.2.3