Use a single global StringFormat in all wxMSW wxGraphicsContext code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 00:43:18 +0000 (00:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 00:43:18 +0000 (00:43 +0000)
commit122b3d0df35bba6bff337ea37a80412907da85d6
tree3e8b636f5a411e27a3bc0fd0fa1af54c1e892cf0
parent6457b0bcc1a77030b24116346aecefa16382befa
Use a single global StringFormat in all wxMSW wxGraphicsContext code.

Instead of creating StringFormat in DrawText() and Get[Partial]TextExtent[s],
create it once and simply use it from both functions.

This might be slightly more efficient as we don't waste time recreating it but
the main advantage is that it ensures that these functions use the same string
format and no discrepancies between them are possible.

See #14537.

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