pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/wxGTK Implement descent calculation in GetTextExte...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3351a70b77f6
branches:  trunk
changeset: 486811:3351a70b77f6
user:      augustss <augustss%pkgsrc.org@localhost>
date:      Mon Jan 03 16:19:32 2005 +0000

description:
Implement descent calculation in GetTextExtent.  From 2.5.3.

diffstat:

 x11/wxGTK/distinfo         |   4 +++-
 x11/wxGTK/patches/patch-ae |  15 +++++++++++++++
 x11/wxGTK/patches/patch-af |  15 +++++++++++++++
 3 files changed, 33 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r b231c397f351 -r 3351a70b77f6 x11/wxGTK/distinfo
--- a/x11/wxGTK/distinfo        Mon Jan 03 15:59:12 2005 +0000
+++ b/x11/wxGTK/distinfo        Mon Jan 03 16:19:32 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2004/05/19 15:16:39 drochner Exp $
+$NetBSD: distinfo,v 1.15 2005/01/03 16:19:32 augustss Exp $
 
 SHA1 (wxGTK-2.4.2.tar.bz2) = 3f1ebacaaf8eb5510c14ee10bafbc5f225be842c
 Size (wxGTK-2.4.2.tar.bz2) = 5381935 bytes
@@ -6,3 +6,5 @@
 SHA1 (patch-ab) = 55f61ebaa77aeea5bfe447b974a1f18e87917300
 SHA1 (patch-ac) = 01aa0bea28f838680cce6326fa67700b12f75d86
 SHA1 (patch-ad) = 809a12f89b018373910b31442dfd315276cafbdf
+SHA1 (patch-ae) = 8c4c8fd6e644466af181be1694921aeb14580383
+SHA1 (patch-af) = 0310ad28ee99580ce822c09dcce2a8df899fd0f5
diff -r b231c397f351 -r 3351a70b77f6 x11/wxGTK/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/wxGTK/patches/patch-ae        Mon Jan 03 16:19:32 2005 +0000
@@ -0,0 +1,15 @@
+--- 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;  // ??
+     
diff -r b231c397f351 -r 3351a70b77f6 x11/wxGTK/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/wxGTK/patches/patch-af        Mon Jan 03 16:19:32 2005 +0000
@@ -0,0 +1,15 @@
+--- src/gtk/window.cpp.orig    2003-09-21 13:31:58.000000000 +0200
++++ src/gtk/window.cpp 2005-01-02 14:11:08.000000000 +0100
+@@ -3448,8 +3448,10 @@
+     if (y) (*y) = (wxCoord) (rect.height / PANGO_SCALE);
+     if (descent)
+     {
+-        // Do something about metrics here
+-        (*descent) = 0;
++        PangoLayoutIter *iter = pango_layout_get_iter(layout);
++        int baseline = pango_layout_iter_get_baseline(iter);
++        pango_layout_iter_free(iter);
++        *descent = *y - PANGO_PIXELS(baseline);
+     }
+     if (externalLeading) (*externalLeading) = 0;  // ??
+ 



Home | Main Index | Thread Index | Old Index