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:
parent
73fcc2def6
commit
6b026e1a98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130655
12
accessibility/gnome-mag/files/patch-magnifier_magnifier.c
Normal file
12
accessibility/gnome-mag/files/patch-magnifier_magnifier.c
Normal 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 */
|
12
accessibility/gnomemag/files/patch-magnifier_magnifier.c
Normal file
12
accessibility/gnomemag/files/patch-magnifier_magnifier.c
Normal 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 */
|
Loading…
Reference in New Issue
Block a user