]> git.saurik.com Git - wxWidgets.git/commit
Only call GetTextMetrics() in wxDC::GetTextExtent() if necessary.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 14:47:18 +0000 (14:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 14:47:18 +0000 (14:47 +0000)
commit247afab527ec1355b9caaa0eea76b981db92a782
treee4f2c1eda00fc889630893fb8fd80bdec6a8db21
parentec38225e66be33459125f0df1c9e3695c27509c0
Only call GetTextMetrics() in wxDC::GetTextExtent() if necessary.

A micro-optimization: avoid ::GetTextMetrics() call if we don't use its
results (as is the case if neither descent nor external leading were
requested).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/dc.cpp