From 8c0fdc97e08a752bf9ca84a0ac17caa3a79bea22 Mon Sep 17 00:00:00 2001 From: pescuma Date: Mon, 26 Jan 2009 01:44:08 +0000 Subject: skins: 0.0.0.4 * Fixed font service iteration * Fixed naming of skin options git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@141 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/skins/SkinLib/FontState.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Plugins/skins/SkinLib/FontState.cpp') diff --git a/Plugins/skins/SkinLib/FontState.cpp b/Plugins/skins/SkinLib/FontState.cpp index fdf1e09..da9b415 100644 --- a/Plugins/skins/SkinLib/FontState.cpp +++ b/Plugins/skins/SkinLib/FontState.cpp @@ -1,6 +1,7 @@ #include "globals.h" #include "FontState.h" + FontState::FontState(HFONT hFont, COLORREF aColor) : hFont(NULL), externalFont(false), color(aColor) { setHFONT(hFont); @@ -19,7 +20,7 @@ void FontState::rebuildHFONT() void FontState::buildAttribs() { - LOGFONT lf; + LOGFONT lf = {0}; if (hFont == NULL || GetObject(hFont, sizeof(lf), &lf) == 0) { face = _T("Tahoma"); -- cgit v1.2.3