diff options
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");
|