diff options
author | adamw <adamw@FreeBSD.org> | 2005-03-09 04:55:45 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2005-03-09 04:55:45 +0800 |
commit | 1bab7c3ac38081ff49e91a7fce59cc98b29e68ef (patch) | |
tree | fa5fb4f40c364eefe928fb08548969b8098edf24 /accessibility/gnome-mag | |
parent | c6b1f864752b7b57c69f05d4c3cf1dcc28b7f859 (diff) | |
download | freebsd-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.c | 12 |
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 */ |