17 lines
635 B
Text
17 lines
635 B
Text
$NetBSD: patch-ae,v 1.1.1.1 2005/08/07 11:27:29 wiz Exp $
|
|
|
|
--- src/gtk/dcclient.cpp.orig 2003-09-21 13:31:57.000000000 +0200
|
|
+++ src/gtk/dcclient.cpp 2005-01-02 14:11:00.000000000 +0100
|
|
@@ -1666,8 +1666,10 @@
|
|
if (height) (*height) = (wxCoord) h;
|
|
if (descent)
|
|
{
|
|
- // Do something about metrics here. TODO.
|
|
- (*descent) = 0;
|
|
+ PangoLayoutIter *iter = pango_layout_get_iter(layout);
|
|
+ int baseline = pango_layout_iter_get_baseline(iter);
|
|
+ pango_layout_iter_free(iter);
|
|
+ *descent = h - PANGO_PIXELS(baseline);
|
|
}
|
|
if (externalLeading) (*externalLeading) = 0; // ??
|
|
|