diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-26 01:44:08 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-26 01:44:08 +0000 |
commit | 8c0fdc97e08a752bf9ca84a0ac17caa3a79bea22 (patch) | |
tree | 5ab9b7fa0374ab941a77a503d6b1ac1dc2bfcf94 /Plugins/skins/SkinLib/FontState.cpp | |
parent | 5b6037bba0a247515bffdb1c0914d9cb01b8518c (diff) |
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
Diffstat (limited to 'Plugins/skins/SkinLib/FontState.cpp')
-rw-r--r-- | Plugins/skins/SkinLib/FontState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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");
|