diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/TipperYM/src/options.cpp | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/TipperYM/src/options.cpp')
-rw-r--r-- | plugins/TipperYM/src/options.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/TipperYM/src/options.cpp b/plugins/TipperYM/src/options.cpp index ad60f95536..20b97c1b5b 100644 --- a/plugins/TipperYM/src/options.cpp +++ b/plugins/TipperYM/src/options.cpp @@ -163,12 +163,12 @@ bool LoadDS(DISPLAYSUBST *ds, int index) }
mir_snprintf(setting, "TransFuncId%d", index);
- ds->iTranslateFuncId = db_get_dw(0, MODULE_ITEMS, setting, (DWORD)-1);
+ ds->iTranslateFuncId = db_get_dw(0, MODULE_ITEMS, setting, (uint32_t)-1);
// a little backward compatibility
- if ((DWORD)ds->iTranslateFuncId == (DWORD)-1) {
+ if ((uint32_t)ds->iTranslateFuncId == (uint32_t)-1) {
mir_snprintf(setting, "TransFunc%d", index);
- ds->iTranslateFuncId = (DWORD)db_get_w(0, MODULE_ITEMS, setting, 0);
+ ds->iTranslateFuncId = (uint32_t)db_get_w(0, MODULE_ITEMS, setting, 0);
}
return true;
@@ -282,9 +282,9 @@ void SaveOptions() g_plugin.setWord("InnerAvatarPadding", opt.iInnerAvatarPadding);
g_plugin.setWord("TextPadding", opt.iTextPadding);
g_plugin.setByte("Position", (uint8_t)opt.pos);
- g_plugin.setDword("MinWidth", (DWORD)opt.iMinWidth);
- g_plugin.setDword("MinHeight", (DWORD)opt.iMinHeight);
- g_plugin.setDword("SidebarWidth", (DWORD)opt.iSidebarWidth);
+ g_plugin.setDword("MinWidth", (uint32_t)opt.iMinWidth);
+ g_plugin.setDword("MinHeight", (uint32_t)opt.iMinHeight);
+ g_plugin.setDword("SidebarWidth", (uint32_t)opt.iSidebarWidth);
g_plugin.setByte("MouseTollerance", (uint8_t)opt.iMouseTollerance);
g_plugin.setByte("SBarTips", (opt.bStatusBarTips ? 1 : 0));
@@ -352,7 +352,7 @@ void LoadObsoleteSkinSetting() }
mir_snprintf(setting, "SGlyphMargins%d", i);
- DWORD margins = g_plugin.getDword(setting, 0);
+ uint32_t margins = g_plugin.getDword(setting, 0);
opt.margins[i].top = LOBYTE(LOWORD(margins));
opt.margins[i].right = HIBYTE(LOWORD(margins));
opt.margins[i].bottom = LOBYTE(HIWORD(margins));
|