From 1b76508b4be6092aa50a324fba432fd2b13c6b86 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 6 Jan 2016 17:31:15 +0000 Subject: Tipper: correct version of previous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@16038 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/tipper.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins/TipperYM/src/tipper.cpp') 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; } -- cgit v1.2.3