Minor correction to GetTextExtent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
02c0348e97
commit
6c2019b942
@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
||||
pango_layout_line_get_extents(line, NULL, &rect);
|
||||
|
||||
|
||||
if (width) (*width) = (wxCoord) rect.width;
|
||||
if (height) (*height) = (wxCoord) rect.height;
|
||||
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
|
||||
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
|
||||
if (descent)
|
||||
{
|
||||
// Do something about metrics here
|
||||
|
@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
||||
pango_layout_line_get_extents(line, NULL, &rect);
|
||||
|
||||
|
||||
if (width) (*width) = (wxCoord) rect.width;
|
||||
if (height) (*height) = (wxCoord) rect.height;
|
||||
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
|
||||
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
|
||||
if (descent)
|
||||
{
|
||||
// Do something about metrics here
|
||||
|
Loading…
Reference in New Issue
Block a user