]> git.saurik.com Git - wxWidgets.git/commit
Change interpretation of font height in wxMSW to mean character height.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Nov 2009 20:47:52 +0000 (20:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Nov 2009 20:47:52 +0000 (20:47 +0000)
commit5414d62e3a275cad2eff70f28fdba3a7b646e0cc
treeab865cd184055b4f373b8589e5394047f29c563b
parentaa2444bd9ef48c616e0f518722aa447a1c062d32
Change interpretation of font height in wxMSW to mean character height.

Accept both positive and negative height values in wxFont::SetPixelSize() in
wxMSW and map them both to a negative height when passing to MSW API in order
to request mapping against the character height and not the total cell height.

For positive heights this is more consistent with the other ports and also
expectations of people using this function. We keep the possibility to use
the negative heights inly for compatibility with the existing code which
worked around the (incorrect) interpretation of the positive height as cell
heights in the previous wxMSW versions by passing a negative height
explicitly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
src/msw/font.cpp