summaryrefslogtreecommitdiff
path: root/x11/gnome-mag/patches/patch-ab
blob: 18e0de80e5eeddf087043e985bcbe0d7dd022ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */