From 9c97b4f76d813a8df38aee84594dc1d6071b52a9 Mon Sep 17 00:00:00 2001 From: rillig Date: Tue, 12 Apr 2005 00:51:22 +0000 Subject: Added a patch needed for gcc-2.95. Approved by jlam. --- x11/gnome-mag/distinfo | 3 ++- x11/gnome-mag/patches/patch-ab | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 x11/gnome-mag/patches/patch-ab (limited to 'x11/gnome-mag') diff --git a/x11/gnome-mag/distinfo b/x11/gnome-mag/distinfo index c2efc5af926..82ab7087a2a 100644 --- a/x11/gnome-mag/distinfo +++ b/x11/gnome-mag/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.12 2005/03/22 16:32:14 jmmv Exp $ +$NetBSD: distinfo,v 1.13 2005/04/12 00:52:49 rillig Exp $ SHA1 (gnome-mag-0.12.0.tar.bz2) = 5dbbb5246d6f0d58d0b8325ac0c03256a4651a53 RMD160 (gnome-mag-0.12.0.tar.bz2) = 361c079bf7f6fd814ff17759a7af65699bfa7efc Size (gnome-mag-0.12.0.tar.bz2) = 327407 bytes SHA1 (patch-aa) = 20ad89bfabb3f0804a5d18ad0d2004d27202e277 +SHA1 (patch-ab) = a228bbc32eadbed51a84961874c56ae2c23ffd86 diff --git a/x11/gnome-mag/patches/patch-ab b/x11/gnome-mag/patches/patch-ab new file mode 100644 index 00000000000..18e0de80e5e --- /dev/null +++ b/x11/gnome-mag/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1 2005/04/12 00:52:49 rillig Exp $ + +Needed for gcc-2.95. + +--- magnifier/magnifier.c.orig Fri Feb 4 19:15:59 2005 ++++ magnifier/magnifier.c Mon Apr 11 01:33:34 2005 +@@ -675,8 +675,8 @@ magnifier_get_display_rect_bounds (Magni + static void magnifier_adjust_source_size (Magnifier *magnifier) + { + GNOME_Magnifier_RectBounds rect_bounds; +- magnifier_get_display_rect_bounds (magnifier, &rect_bounds, FALSE); + gdouble vfract, hfract; ++ magnifier_get_display_rect_bounds (magnifier, &rect_bounds, FALSE); + hfract = (double) (magnifier->target_bounds.x2 - magnifier->target_bounds.x1) / (double) (rect_bounds.x2 - rect_bounds.x1); + vfract = (double) (magnifier->target_bounds.y2 - magnifier->target_bounds.y1) / (double) (rect_bounds.y2 - rect_bounds.y1); + if (vfract > hfract) /* vertical splitpane, approximately */ -- cgit v1.2.3