OSDN Git Service

Fix log graph don't show line at git blame
authorFrank Li <lznuaa@gmail.com>
Mon, 18 Jan 2010 12:21:01 +0000 (20:21 +0800)
committerFrank Li <lznuaa@gmail.com>
Mon, 18 Jan 2010 12:21:01 +0000 (20:21 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseGitBlame/TortoiseGitBlame.cpp
src/TortoiseGitBlame/TortoiseGitBlame.h

index 79adf98..c941c51 100644 (file)
@@ -62,6 +62,9 @@ BOOL CTortoiseGitBlameApp::InitInstance()
 \r
        CWinAppEx::InitInstance();\r
 \r
+       Gdiplus::GdiplusStartupInput gdiplusStartupInput;\r
+       Gdiplus::GdiplusStartup(&m_gdiplusToken,&gdiplusStartupInput,NULL);\r
+\r
        // Initialize OLE libraries\r
        if (!AfxOleInit())\r
        {\r
@@ -182,3 +185,10 @@ void CTortoiseGitBlameApp::SaveCustomState()
 \r
 \r
 \r
+\r
+int CTortoiseGitBlameApp::ExitInstance()\r
+{\r
+       // TODO: Add your specialized code here and/or call the base class\r
+       Gdiplus::GdiplusShutdown(m_gdiplusToken);\r
+       return CWinAppEx::ExitInstance();\r
+}\r
index 004fcb2..560eb83 100644 (file)
@@ -18,7 +18,7 @@ class CTortoiseGitBlameApp : public CWinAppEx
 {\r
 public:\r
        CTortoiseGitBlameApp();\r
-\r
+       ULONG_PTR m_gdiplusToken;\r
 \r
 // Overrides\r
 public:\r
@@ -35,6 +35,7 @@ public:
        CString m_Rev;\r
        afx_msg void OnAppAbout();\r
        DECLARE_MESSAGE_MAP()\r
+       virtual int ExitInstance();\r
 };\r
 \r
 extern CTortoiseGitBlameApp theApp;\r