diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 17:31:15 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 17:31:15 +0000 |
commit | 1b76508b4be6092aa50a324fba432fd2b13c6b86 (patch) | |
tree | dbfd1404700b831822e4a608099288b93a690494 /plugins/TipperYM | |
parent | de6c288cc72e2fa991c2cae09d6ed740972b7983 (diff) |
Tipper: correct version of previous commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@16038 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r-- | plugins/TipperYM/src/tipper.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp index db1783e8dc..d2629155b9 100644 --- a/plugins/TipperYM/src/tipper.cpp +++ b/plugins/TipperYM/src/tipper.cpp @@ -293,11 +293,20 @@ int Shutdown(WPARAM, LPARAM) HANDLE hEventPreShutdown, hEventModulesLoaded;
-static INT_PTR ReloadSkin(WPARAM, LPARAM)
+static INT_PTR ReloadSkin(WPARAM, LPARAM lParam)
{
+ opt.skinMode = SM_IMAGE;
+ if (lParam != 0)
+ _tcscpy_s(opt.szSkinName, _A2T((char*)(lParam)));
ParseSkinFile(opt.szSkinName, false, false);
ReloadFont(0, 0);
SaveOptions();
+
+ db_set_b(0, MODULE, "SkinEngine", opt.skinMode);
+ db_set_ts(0, MODULE, "SkinName", opt.szSkinName);
+
+ DestroySkinBitmap();
+
return 0;
}
|