1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix build on 4.X.

This commit is contained in:
Adam Weinberger 2005-03-08 20:55:45 +00:00
parent 73fcc2def6
commit 6b026e1a98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130655
2 changed files with 24 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */