[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix wrong charset of font in TortoiseBlame

From: Kazutoshi Satoda <k_satoda_at_f2.dion.ne.jp>
Date: 2006-08-05 20:38:10 CEST

Hi again.

In TortoiseBlame(at r7149), Translated(Japanese) header text is drawn
by wrong font. The attached patch fixes this problem. I verified
the modified TortoiseBlame on my machine(Windows XP Japanese).

Is there any chance to apply this (one line)fix to 1.4.0 release?
I'm sorry not in time for RC1.

--
k_satoda

Index: src/TortoiseBlame/TortoiseBlame.cpp
===================================================================
--- src/TortoiseBlame/TortoiseBlame.cpp (revision 7199)
+++ src/TortoiseBlame/TortoiseBlame.cpp (working copy)
@@ -565,6 +565,7 @@
         lf.lfWeight = 400;
         HDC hDC = ::GetDC(wBlame);
         lf.lfHeight = -MulDiv((DWORD)CRegStdWORD(_T("Software\\TortoiseMerge\\LogFontSize"), 10), GetDeviceCaps(hDC, LOGPIXELSY), 72);
+ lf.lfCharSet = DEFAULT_CHARSET;
         CRegStdString fontname = CRegStdString(_T("Software\\TortoiseMerge\\LogFontName"), _T("Courier New"));
         _tcscpy_s(lf.lfFaceName, 32, ((stdstring)fontname).c_str());
         m_font = ::CreateFontIndirect(&lf);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Aug 5 20:38:25 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.