mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
The m_FontCollection wasn't initialized so it could cause a crash on exit.
Some code cleanup.
This commit is contained in:
@ -175,10 +175,7 @@ public:
|
||||
|
||||
std::wstring MakePathAbsolute(std::wstring path);
|
||||
|
||||
//========================================================
|
||||
//MattKing Code
|
||||
Gdiplus::PrivateFontCollection* GetPrivateFontCollection(){ return m_FontCollection; }
|
||||
//MattKing Code End
|
||||
|
||||
protected:
|
||||
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
@ -320,12 +317,9 @@ private:
|
||||
|
||||
CRainmeter* m_Rainmeter; // Pointer to the main object
|
||||
|
||||
static int m_InstanceCount;
|
||||
static int c_InstanceCount;
|
||||
|
||||
//==========================================================
|
||||
//MattKing code
|
||||
Gdiplus::PrivateFontCollection* m_FontCollection;
|
||||
//MattKing end
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user