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:
@@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
|||||||
pango_layout_line_get_extents(line, NULL, &rect);
|
pango_layout_line_get_extents(line, NULL, &rect);
|
||||||
|
|
||||||
|
|
||||||
if (width) (*width) = (wxCoord) rect.width;
|
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
|
||||||
if (height) (*height) = (wxCoord) rect.height;
|
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
|
||||||
if (descent)
|
if (descent)
|
||||||
{
|
{
|
||||||
// Do something about metrics here
|
// Do something about metrics here
|
||||||
|
@@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
|
|||||||
pango_layout_line_get_extents(line, NULL, &rect);
|
pango_layout_line_get_extents(line, NULL, &rect);
|
||||||
|
|
||||||
|
|
||||||
if (width) (*width) = (wxCoord) rect.width;
|
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
|
||||||
if (height) (*height) = (wxCoord) rect.height;
|
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
|
||||||
if (descent)
|
if (descent)
|
||||||
{
|
{
|
||||||
// Do something about metrics here
|
// Do something about metrics here
|
||||||
|
Reference in New Issue
Block a user