aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/gnome-mag
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2005-03-09 04:55:45 +0800
committeradamw <adamw@FreeBSD.org>2005-03-09 04:55:45 +0800
commit1bab7c3ac38081ff49e91a7fce59cc98b29e68ef (patch)
treefa5fb4f40c364eefe928fb08548969b8098edf24 /accessibility/gnome-mag
parentc6b1f864752b7b57c69f05d4c3cf1dcc28b7f859 (diff)
downloadfreebsd-ports-gnome-1bab7c3ac38081ff49e91a7fce59cc98b29e68ef.tar.gz
freebsd-ports-gnome-1bab7c3ac38081ff49e91a7fce59cc98b29e68ef.tar.zst
freebsd-ports-gnome-1bab7c3ac38081ff49e91a7fce59cc98b29e68ef.zip
Fix build on 4.X.
Diffstat (limited to 'accessibility/gnome-mag')
-rw-r--r--accessibility/gnome-mag/files/patch-magnifier_magnifier.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/accessibility/gnome-mag/files/patch-magnifier_magnifier.c b/accessibility/gnome-mag/files/patch-magnifier_magnifier.c
new file mode 100644
index 000000000000..9b0193a872df
--- /dev/null
+++ b/accessibility/gnome-mag/files/patch-magnifier_magnifier.c
@@ -0,0 +1,12 @@
+--- magnifier/magnifier.c.orig Tue Mar 8 15:52:39 2005
++++ magnifier/magnifier.c Tue Mar 8 15:52:53 2005
+@@ -675,8 +675,8 @@
+ 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 */